Playwright · Middle · Question 57 of 75

What does a Page Object usually contain?

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.

Further reading

Problem with a question

Playwright · Middle · question 57

Test yourself

Take the Playwright · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz