Playwright · Middle · Question 58 of 75
Why are page objects often provided through fixtures?
- 1Tests get them ready to use without repeated setup
- 2Page objects can't be created with
new - 3Fixtures make page objects run in the browser
Show the answer
Correct answer: Tests get them ready to use without repeated setup
Explanation
A fixture creates the page object, maybe navigates, and passes it in, so each test starts directly with its logic.