Package com.codeborne.selenide.selector
Class ByShadow
java.lang.Object
com.codeborne.selenide.selector.ByShadow
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.By
cssSelector
(String target, String shadowHost, String... innerShadowHosts) Find target elements inside shadow-root that attached to shadow-host.
-
Constructor Details
-
ByShadow
public ByShadow()
-
-
Method Details
-
cssSelector
@CheckReturnValue @Nonnull public static org.openqa.selenium.By cssSelector(String target, String shadowHost, 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.
-