Annotation Interface Unshadow


@Retention(RUNTIME) @Target(FIELD) public @interface Unshadow
Experimental: Find element in shadow root using CSS selector
 public class HomepageTest extends FluentPage {

      @Unshadow(css = {"outer-shadow-root", "inner-shadow-root", ".element"})
      FluentWebElement element;

      //Element is instantiated and can be used by test methods.
 }
 
It can also handle List and Set collections if many objects are found
 public class HomepageTest extends FluentPage {

      @Unshadow(css = {"outer-shadow-root", "inner-shadow-root", "div"})
      List<FluentWebElement> elementsList;

      @Unshadow(css = {"outer-shadow-root", "inner-shadow-root", "span"})
      Set<FluentWebElement> elementsSet;

      //elementsList and elementsSet are instantiated and can be used by test methods.
 }
 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details