TestProject Forum

How to click a hyper link with a special word but don't know which row it located at?

there is a table, in one column, come of the rows have a link with special words (such as “click me”), I need to click one of this.
Thanks

here how you can do it, locate your table xpath with TestProject element spy, then add the following syntax to your xpath //table//td/a[text()=“click me”] , save the element and you are good to go.

I made an example on HTML table in a public site of w3schools HTML Tables

selecting the whole table

highlighting the specific hyperlink

let me know if it helps