How to use properly new getShadowRoot API #3745
Unanswered
irondev84
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.
-
I saw in documention very simple example of getShadowRoot:
But the question is how to use the getShadowRoot command when shadowRoot elements exist inside another shadowRoot element?
Unfortunately I stuck with it in my project.
Should I write something like this:
or
Please help me to understand this. The only first line works fine:
const shadowRootLevel1 = await browser.getShadowRoot('popup-info');
and the shadowRootLevel1 is web element.
But what to do next if the next element in DOM is shadow element also.
Is anyone can do it in some project ?
Beta Was this translation helpful? Give feedback.
All reactions