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
Why not ey?
Descendant selector support thanks to: https://github.com/mariusandra
Added support for WebdriverIO custom locator strategy plugin https://github.com/Georgegriff/query-selector-shadow-dom#webdriverio
Experimental!
There is now a plugin available that uses the experimental custom Query Handler API from Puppeteer. This API could be changed at any moment via Puppeteer without a breaking sem version.
Thank you to @jan-molak for the new plugin and documentation for protractor support.
Puppeteer support for custom locators should be coming in the future which is what is being kept for 1.0.0 of the lib
From issue #31 put a change in to normalize css selectors before processing them
Adds playwright support: thanks to @ihor-nikiforov-scout
https://github.com/Georgegriff/query-selector-shadow-dom/pull/19
Thanks to @TomCaserta for the fix in https://github.com/Georgegriff/query-selector-shadow-dom/pull/9