shadow$
Access an element inside a given element's shadowRoot. If you are working
with lots of nested shadow roots, an alternative approach to shadow$
is
to use the deep selector.
info
WebdriverIO automatically pierces through shadow roots when using $
or $$
commands.
This command is only needed if you automate within an environment that doesn't
support WebDriver Bidi yet, e.g. mobile web testing with Appium.
Usage
$(selector).shadow$(selector)
Parameters
Name | Type | Details |
---|---|---|
selector | String , Function | selector or JS Function to fetch a certain element |