Skip to content
RED SAG Skills
mediumStudy question · answer published in Playwright interview questions, so no pointsui-automationplaywrightlocators

The risk of first()

A test uses page.getByRole("row").first() to check the newest order. It passes locally but fails in CI where the table sorts differently. What is the best fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions