Class ByShadow

java.lang.Object
com.codeborne.selenide.selector.ByShadow

@ParametersAreNonnullByDefault public class ByShadow extends Object
  • 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 element
      shadowHost - CSS expression of the shadow-host with attached shadow-root
      innerShadowHosts - subsequent inner shadow-hosts
      Returns:
      A By which locates elements by CSS inside shadow-root.