Skip to main content
World of QA
2026-06-24 17:36
Landing
Practice UI
Practice API
Fullstack
Trainer
Toggle theme
136 challenges
Sign in
🎯
Locator Basics
·
Q1/5
easy
Which Playwright locator is MOST resilient to DOM refactoring?
page.locator('.btn-primary')
page.getByRole('button', { name: 'Submit' })
page.locator('xpath=//div[3]/form/button')
page.locator('button:nth-child(3)')
Map
Check