Reading a driver's commands: navigate, ask, act
Every line of a browser script is one of three kinds: go somewhere, ask a question or do something. Learn the three kinds and what their error names mean.
PRACTISE AND KEEP
Sources for this topic — 6 sources
- Market practice
Browser navigation (Selenium documentation) ↗ — Selenium project · Commands to open an address, go back, go forward and refresh; the page title and current address are read from the driver (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Information about web elements (Selenium documentation) ↗ — Selenium project · An element can be asked whether it is displayed, enabled or selected; its text is the visible text; an attribute read returns the current value, and a separate read returns only the value written in the page markup (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
WebDriver, World Wide Web Consortium Recommendation ↗ — World Wide Web Consortium · Defines the command set; error codes include element not interactable and element click intercepted (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Understanding common errors (Selenium documentation) ↗ — Selenium project · A stale element reference means the element is no longer attached to the page, usually because the page redrew it; find it again each time (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
WebDriver Close Window command ↗ — MDN Web Docs · Close Window closes one top-level window and ends the session if it is the last; quit ends the session; find-one throws when nothing matches and find-many returns an empty list (search excerpts, pages not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Selenium interview questions (findElement, findElements, waits, close and quit) ↗ — TestLeaf · Close Window closes one top-level window and ends the session if it is the last; quit ends the session; find-one throws when nothing matches and find-many returns an empty list (search excerpts, pages not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.