# webdriverio/query-selector-shadow-dom

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/webdriverio-query-selector-shadow-dom).**

262 stars · 26 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/webdriverio/query-selector-shadow-dom
- awesome-repositories: https://awesome-repositories.com/repository/webdriverio-query-selector-shadow-dom.md

## Description

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

## Tags

### Part of an Awesome List

- [Testing Solutions](https://awesome-repositories.com/f/awesome-lists/devtools/testing-solutions.md) — Pierces Shadow DOM roots for automated testing.
