Open simenbrekken-visma opened 2 years ago
I was able to fix the issue in Cypress but it appears https://github.com/ericclemmons/unique-selector does not handle Shadow DOM either so it appears that will also need a fix.
Any update on this? I have the same issue
Same issue here. It'll be nice to add the get() options in the playground.
Current behavior
When attempting to locate selectors using the highlight feature of the selector playground it does not locate elements within ShadowRoots even when
includeShadowDom
is enabled.fixtures/shadow-dom.html
Resulting selector playground:
Desired behavior
When
includeShadowDom
is enabled selector should search all available ShadowRoots. This will most likely require https://github.com/cypress-io/cypress/blob/develop/packages/runner-shared/src/iframe/aut-iframe.js#L294 to be modified as it only searches the currentcontentDocument
.Test code to reproduce
I wasn't able to find a test that would let me reproduce this but any test visiting the following HTML fixture should make it apparent.
Cypress Version
8.7.0 and 9.5.1
Other
No response