How I can properly test things inside nested shadow roots? #4215
Unanswered
dortamiguel
asked this question in
Help Needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I have to access something that is nested inside three shadow roots. So far I managed to access to the elements I need like this.
This will throw an error if I can't make my test pass but this is very hacky and I can't use anymore things like waitForElementVisible
I know there is a
browser.getShadowRoot
method (https://nightwatchjs.org/api/element/getShadowRoot.html), but I don't know how I can get a nested shadow root from there.Beta Was this translation helpful? Give feedback.
All reactions