S
S
Sergey2021-07-02 13:03:55
C++ / C#
Sergey, 2021-07-02 13:03:55

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

1 answer(s)
1
1001001, 2021-07-02
@1001001

What is the problem with searching by text or part of it
.//*[text()[contains(. , '32157')]]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question