Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Automation & CIMiddleOccasionalScenario

How would you approach stable locators across pull requests and nightly suites?

Answer

Start by choosing checks by feedback value, repeatability and maintenance cost rather than automation percentage. Focus on stable locators across pull requests and nightly suites. Use deterministic assertions at the lowest useful layer as the oracle. Cover isolation, synchronization, diagnostics, parallel safety and quarantine rules. Keep data and dependencies controlled enough to reproduce failures. Release only when the suite gives fast reproducible failures and its ownership cost stays visible.

Strong answer includes

  • explicit risk and test oracle for stable locators
  • optimizes the feedback loop
  • treats flakiness as a defect
  • measurable evidence and residual-risk statement

Practical example

A login-form test broke every sprint because it selected buttons by their CSS class, which the frontend team renamed during every redesign. The PR gate needed an answer in minutes, while a separate nightly run could afford to cover far more ground overnight. Walking through it this way turned a vague complaint into a short, reproducible write-up someone else could act on without extra back-and-forth.

#automation#ci#stable-locators

Sources

Playwright best practicesMicrosoft · Reliable modern browser automationSelenium documentationSelenium Project · WebDriver architecture, waits, Grid and browser automation