Playwright · Middle · Question 57 of 75
What does a Page Object usually contain?
- 1All the assertions for the whole application
- 2Locators and actions for one page or component
- 3The test data for every test in the suite
Show the answer
Correct answer: Locators and actions for one page or component
Explanation
Page objects hide locators behind methods like login(email, password). When the UI changes, only the page object changes.