hardStudy question · answer published in Automation Testing interview questions, so no pointsui-automationplaywrightlocators
Paying one invoice in a table
In a table of invoices, each row has one button, "Pay", and rows = page.getByRole("row"). Which locator finds "Pay" only in the row whose invoice cell is exactly "INV-1043" (and not "INV-10431")?
Discussion 0
Join free to post in the discussion.
Related questions
- Choosing a stable locatorAutomation Test Engineer
- Waiting for an elementAutomation Test Engineer
- Headless modeAutomation Test Engineer
- Reading a CSS selectorAutomation Test Engineer
- A missing awaitAutomation Test Engineer
- Browsers Playwright coversAutomation Test Engineer
- Using the trace viewerAutomation Test Engineer
- Finding a button by role and nameAutomation Test Engineer