As on the image I have to click on the 6th item on the list.
I can easily do this with
But is there any way to do the same thing with the help of
2005256 digit which is available end of the
You can use a CSS Selector looking for a substring at the onclick attribute:
This will look for the client regardless of the position. If you want by position:
I think the CSS Selector is the best solution, but you could also loop through all the
row elements and get the onclick attribute text with
element.GetAttribute("onclick"). This should the full onclick string and now you can use your programming language to find if it contains the number and use elements that match.
Try the below Xpath and share your feedback
(//div[@class='row client - selection row'])