Loading...
Loading...
Browse 3 real-world technical and behavioral interview questions about Selenium. Review scenarios, edge cases, and architectural best practices.
An implicit wait retries element location globally and nothing else; an explicit wait polls for a named condition and is the only tool that can wait for state. Stale references happen because a WebElement points at one DOM node that no longer exists, so the cure is re-locating rather than re-waiting.
Give each thread its own WebDriver session held in thread-local storage, remove every other piece of shared mutable state including test data and static fields, size the run to the grid's slots so requests queue rather than time out, and quit every session even on abnormal exit.
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.