Answer the question
In order to leave comments, you need to log in
How to handle Click on table row?
Hello!
There is a code block on the site page, I want to click on a dynamic table row (there are many rows), while id, data-boundview, data-recordid change all the time.
If I directly access by ID (before changing the ID next time):
IWebElement query = driver.FindElement(By.XPath(".//*[@id='gridview-1074-record-799']"));
works. But ID is changing.
I don't understand how to write code to click on rows and was bound by ID (in the code below, this is the text "32157").
Broke my head.
Please, help..
06/29/2021 |
FIRM ONE |
06/30/2021 |
Status |
|
Group: Transport group 1 Subject: Cars Name: Car Number: Р241123384-0007 ID: 32157 |
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question