net.serenitybdd.screenplay.targets.Target Maven / Gradle / Ivy
package net.serenitybdd.screenplay.targets;
import net.serenitybdd.core.pages.*;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.abilities.BrowseTheWeb;
import net.serenitybdd.screenplay.ui.LocatorStrategies;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import java.time.Duration;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
public abstract class Target implements ResolvableElement {
protected final String targetElementName;
protected Optional