Skip to main content
World of QA
STG
·
2026-04-24 23:10
Landing
Practice UI
Practice API
Fullstack
Trainer
Toggle theme
107 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