~/talk

Working in the Shadow (DOM) - How to test Web Components

Talkat Selenium Conf 2022 · 2022-07-29..07-30· [web-platform, testing]
slides:none on file

Explains that Web Components reduce page bloat but break traditional locators and that ad hoc fixes in Playwright, WebdriverIO and SeleniumBase use special selectors that don’t map to DevTools. Describes a new getShadowRoot API added to WebDriver that navigates open vs closed shadow DOM consistently, shows a working Nightwatch demo against MDN, and reports the feature lands in Chrome now with Firefox patches under review so closed roots become automatable.

AI-written summary · about

  1. 0:00Introduction
  2. 1:22About David
  3. 2:14Agenda
  4. 3:55What are Web Components
  5. 8:27What about frontend frameworks
  6. 14:55Web Components
  7. 16:49How Web Components works
  8. 18:02Testing Web Components
  9. 18:17Web Apps Working Group
  10. 18:52Who thinks about testing
  11. 19:35How to test multiple components
  12. 22:18Attach Shadow DOM
  13. 25:07Jim Evans
  14. 29:03Demo
  15. 34:45Recap
  16. 36:36QA
~/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.