Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add support for querying shadow DOM
Add a `querySelectorAll()` variant which can transparently pierce and traverse shadow DOMs without having to know their structure (i.e. doing selectors piece-wise and iterating on their `.shadowRoot` attribute). As this is more expensive than standard querySelector()`, only use it if the page actually contains any shadow root. This makes it a lot more convenient to write tests for pages which use web components, like https://patternflyelements.org.
- Loading branch information