Reputation: 13
I have a table that looks something like this: Table
I am trying to click the "link" based on the text in the "name" column. e.g Look through table for the text "autotest3" and click the corresponding link in the same row
Upvotes: 1
Views: 511
Reputation: 2348
You can specify a Selector that will find a specific table row based on the text from the "Name" column and then find a child element (table cell) from column 3. For example:
await t.click(Selector('tr').withText('Autotest2').find('td').withText('Link'));
Upvotes: 1