query-selector-ponyfill
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i query-selector-ponyfill

    Weekly Downloads

    327

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    25.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • nikhilverma