public abstract class Target extends Object
Modifier and Type | Field and Description |
---|---|
protected Optional<IFrame> |
iFrame |
protected String |
targetElementName |
protected Optional<Duration> |
timeout |
Constructor and Description |
---|
Target(String targetElementName,
Optional<IFrame> iFrame) |
Target(String targetElementName,
Optional<IFrame> iFrame,
Optional<Duration> timeout) |
protected final String targetElementName
public static TargetBuilder the(String targetElementName)
protected PageObject currentPageVisibleTo(Actor actor)
public WebElementFacade resolveFor(Actor actor)
public List<WebElementFacade> resolveAllFor(Actor actor)
public abstract WebElementFacade resolveFor(PageObject page)
public abstract List<WebElementFacade> resolveAllFor(PageObject page)
public abstract SearchableTarget of(String... parameters)
public abstract String getCssOrXPathSelector()
public String getName()
public abstract List<org.openqa.selenium.By> selectors(org.openqa.selenium.WebDriver driver)
public boolean isVisibleFor(Actor actor)
public <T> Question<T> mapFirst(Function<WebElementFacade,T> transformation)
public <T> Question<Collection<T>> mapAll(Function<WebElementFacade,T> transformation)
Copyright © 2021. All rights reserved.