Playwright · Senior · Question 37 of 77

What is an alternative to deep page object inheritance?

Show the answer

Correct answer: Composition: small component objects and fixtures

Explanation

Components like Header or DatePicker can be reused across pages. Fixtures assemble what each test needs.

Further reading

Problem with a question

Playwright · Senior · question 37

Test yourself

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

Take this quiz