Package org.fluentlenium.core.annotation
Annotation Type Unshadow
-
@Retention(RUNTIME) @Target(FIELD) public @interface Unshadow
Experimental: Find element in shadow root using CSS selectorpublic 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 foundpublic 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. }
-
-
Element Detail
-
css
String[] css
-
-