Class TargetBuilder<T>
java.lang.Object
net.serenitybdd.screenplay.targets.TargetBuilder<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlocated(org.openqa.selenium.By locator) locatedBy(Function<org.openqa.selenium.SearchContext, List<net.serenitybdd.core.pages.WebElementFacade>> locationStrategy) Locate an element using a location strategy function.locatedByFirstMatching(String... cssOrXPathSelectors) locatedForAndroid(org.openqa.selenium.By androidLocator)
-
Constructor Details
-
TargetBuilder
-
-
Method Details
-
inIFrame
-
locatedBy
-
locatedBy
public SearchableTarget locatedBy(Function<org.openqa.selenium.SearchContext, List<net.serenitybdd.core.pages.WebElementFacade>> locationStrategy) Locate an element using a location strategy function. The function takes a Serenity Page Object representing the current web page, and returns a list of matching WebElementFacade objects. -
locatedByFirstMatching
-
located
-
locatedForAndroid
-