Skip to main content
World of QA
2026-10-08 11:19
Landing
Practice UI
Practice API
Fullstack
Trainer
Toggle theme
165 challenges
🎯
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