~/talk

How does Selenium find Elements?

Talkat Selenium Camp 2020 · 2020-02-21..02-22· [web-platform, testing]
slides:none on file

Slides and experiments show exactly what Selenium does: it asks the browser for elements via the WebDriver protocol, often translating ID/name/class into CSS and calling querySelectorAll, while XPath goes through a different path. The author probes driver logs, uses Postman to hit Chrome/Gecko endpoints, and builds microbenchmarks measuring operations per second. Results show DOM-based selectors (often tag name fastest) beat injected XPath most of the time but browsers vary, so performance surprises appear (Edge differs).

AI-written summary · about

  1. 0:00Start
  2. 7:09Postman Window
  3. 14:58History
  4. 18:42Selenium Webdriver Architecture
  5. 19:44Find Element Command
  6. 20:22Different Selectors Strategies
  7. 24:29How Different Browser Works
  8. 26:20How the Parser Works
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.