Skip to content
Testing·Intermediate·Conceptual·1 min read

What is a page object or component model in e2e testing?

Short interview answer

It's a wrapper that encapsulates how to locate and interact with a page or component, so tests express intent ('log in as X') and the selectors live in one place. When the UI changes, the model updates once instead of every test that touched that screen.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to End-to-end testing

Related questions