I have this table which shows a list of items. To delete items you must check the corresponding checkbox and then click the delete button. Now, in the test I need to check if items get deleted correctly and to do so I first create a test item and then I delete it. The items are not added in any order so I have to search for thr <tr> with the item title and then find the checkbox. How can I achieve this?
This thread is trying to answer question "How can I find a checkbox in a table which is in the same <tr> as some text in order to test item deletion?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].