The interview problem
A customer’s browser automation submits orders through a legacy portal with no supported write API. A redesign causes intermittent wrong-field entry. Plan a safe diagnosis and recovery.
Original practice, not a reported company interview. All worked numbers are illustrative. Interview date: not applicable. Written October 3, 2026.
1. Scope and assumptions
Agree on one representative workflow and a non-production test account first. Treat order submission as a side effect that must be reconciled before retrying. Do not bypass authentication or anti-automation controls.
2. Architecture and decisions
Reproduce safely → inspect semantic controls → validate page state → enter draft → review → submit once → reconcile
Capture the failing step, application version and visible state with sensitive fields redacted. Replace positional selectors with stable accessible labels or a contractually supported test identifier. Require a unique match and verify the surrounding form identity. Wait for a meaningful ready state rather than an arbitrary sleep.
Separate data entry from submission. Validate a draft summary against the requested order and attach a business reference that can be searched after an ambiguous timeout. If the portal cannot expose a reliable acknowledgement or reconciliation lookup, route ambiguous submissions to a human queue instead of retrying. Agree with the customer on selector ownership and a regression fixture for future releases.
3. Work through the example
If each of ten independent steps succeeds with probability 99%, end-to-end success is 0.99^10, about 90.44%. Raising each to 99.9% gives about 99.00%. Independence is only an illustrative assumption; one shared page-load failure can break many steps together.
4. Failure cases and trade-offs
A label can be duplicated in a hidden dialog, so semantic selectors still need scope and uniqueness. A successful click is not proof of business completion. More retries improve read robustness but can duplicate writes. Prefer a supported integration API when one becomes available, while keeping the current workflow’s failure handling explicit.
5. Validation and acceptance
Test slow rendering, duplicate labels, expired sessions and a timeout after submission. Acceptance requires no wrong-field writes, no duplicate orders and an actionable exception queue. Hand over a runbook with screenshots of approved states, not credentials.
6. Follow-ups and self-review
What would make you refuse automatic retries? Reward safe reproduction, stable selectors, business reconciliation and a concrete customer handoff.
Sources and related practice
Playwright documents resilient locator practices; this legacy-portal rollout and reconciliation plan are original.
Read the primary technical reference
Reference retrieved October 3, 2026. Retrieval date is not an interview or source publication date. The reference supports the named concept; scenario, architecture, examples and rubric are original.
Continue with Integrate an AI workflow with an unreliable legacy API; Validate a customer integration beyond its sandbox.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.