Skip to content
Preptima

Automation Fundamentals interview questions

What to automate and what not to, page objects, locator strategy, waits, and flakiness root causes.

3 questions in QA & Testing.

easy1

easyConceptCoding

What belongs in a page object, and what should never go in one?

A page object owns locators and the mechanics of interacting with a screen, and nothing else. Assertions, test data and workflow belong in the test, because the moment a page object asserts, the test's intent stops being readable from the test.

5 minentry, mid

medium1

mediumConcept

A test fails in CI and all you get is 'expected true, got false'. What should the framework have given you instead?

A failure has to be diagnosable from its artefacts alone, because nobody can attach a debugger to a CI run: that means assertions that report the compared values, a message naming the business expectation, and captured evidence of the state at the moment of failure. Use this automation answer to show the decision, trade-off, and evidence rather than a memorised definition.

4 minentry, mid, senior

hard1