Class ByShadow


  • @ParametersAreNonnullByDefault
    public class ByShadow
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ByShadow.ByShadowCss  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByShadow()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByShadow

        public ByShadow()
    • 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 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.