Fairly new to Codeceptjs and Puppeteer. Wondering if somebody could provide some insight as to best practices for working with, interacting with elements in tables?
I have a table where the first column of each data row is a check box.
I want to identify a row in the table by text in one of the columns.
I have built the method shown below to delete a record, as there is a delete button within the properties of an item that displays after simply clicking on the row.
deleteSite(id) {
I.click(locate('tr').withText(id));
I.click(this.button.delete);
I.wait(3);
},
I am trying to figure out how to structure this in such a way that I can still find the row I'm after by using locate, but then also click the check box in the first column of that row.
If there is a better way/approach to do this, I'm all ears.
Any assistance would be greatly appreciated.
Thanks, Bob