Skip to content

querySelector that can pierce Shadow DOM roots without knowing the path through nested shadow roots. Useful for automated testing of Web Components. Production use is not advised, this is for test environments/tools such as Web Driver, Playwright, Puppeteer

License

Notifications You must be signed in to change notification settings

NikhilVerma/query-selector-ponyfill

This branch is 3 commits ahead of, 2 commits behind webdriverio/query-selector-shadow-dom:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ce1eca2 · Mar 9, 2023
Aug 12, 2020
Mar 9, 2023
Feb 4, 2021
Jul 13, 2020
Jul 2, 2018
Mar 9, 2023
Sep 1, 2020
Jan 19, 2020
Mar 9, 2023
Mar 9, 2023
Mar 9, 2023
Mar 9, 2023

Repository files navigation

npm version

query-selector-ponyfill

Note: This is a fork of the excellent work done in webdriverio/query-selector-shadow-dom but presented as a ponyfill which overrides the default querySelector behaviour. This will let you use your test libraries and other code behave as normal when working with Web components.

querySelector that can pierce Shadow DOM roots without knowing the path through nested shadow roots. Useful for automated testing of Web Components e.g. with Selenium, Puppeteer.

import 'query-selector-ponyfill';

// Now your document.querySelector* calls can pierce shadow roots

Please read the rest of the readme on: webdriverio/query-selector-shadow-dom

About

querySelector that can pierce Shadow DOM roots without knowing the path through nested shadow roots. Useful for automated testing of Web Components. Production use is not advised, this is for test environments/tools such as Web Driver, Playwright, Puppeteer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%