You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to use Codeception with web components using shadow? #6824
I found a way to make this work for me. It's really not ideal, but a good enough solution for now. I added a method which allows css-selectors with a ::shadow pseudo.
First I extended the web driver:
Activity
mschop commentedon Feb 4, 2025
Hi,
I found a way to make this work for me. It's really not ideal, but a good enough solution for now. I added a method which allows css-selectors with a
::shadowpseudo.First I extended the web driver:
And I registered that one in the config:
In my tests I can now use that method:
With this I am now able to access the shadow dom / shadow root.
One more thing: Is there any reason, why
_findElementsand_findElementmethods are not exposed by default? They seem very useful to me.