Package com.codeborne.selenide.selector
Class ByShadow
- java.lang.Object
-
- com.codeborne.selenide.selector.ByShadow
-
@ParametersAreNonnullByDefault public class ByShadow extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classByShadow.ByShadowCss
-
Constructor Summary
Constructors Constructor Description ByShadow()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.openqa.selenium.BycssSelector(java.lang.String target, java.lang.String shadowHost, java.lang.String... innerShadowHosts)Find target elements inside shadow-root that attached to shadow-host.
-
-
-
Method Detail
-
cssSelector
@CheckReturnValue @Nonnull public static org.openqa.selenium.By cssSelector(java.lang.String target, java.lang.String shadowHost, java.lang.String... innerShadowHosts)Find target elements inside shadow-root that attached to shadow-host.
Supports inner shadow-hosts.
For example: shadow-host > inner-shadow-host > target-element (each shadow-host must be specified explicitly).- Parameters:
target- CSS expression of target elementshadowHost- CSS expression of the shadow-host with attached shadow-rootinnerShadowHosts- subsequent inner shadow-hosts- Returns:
- A By which locates elements by CSS inside shadow-root.
-
-