Hi,
I would like to perform action on a given table of results.
The markup looks like this for one row item
Currently, I have code that checks that the row item exists, and I interact with the actions (delete, edit) using index.
.expect((page.rowItem.withExactText('Test C')).exists).ok({timeout:10000}, 'Container did not add')
.click(page.buttonWrapper.withText('Delete').nth(0))
This works fine for this test case because only one row item will ever be returned.
However, this isn't a nice solution when multiple results are returned if i was to make changes in future.
Preferably, I would like a solution that looks for a specific row by title and then interacts with buttons only within that row.
Would this be possible?
Thanks,