net.serenitybdd.screenplay.targets.MultiXPathOrCssTarget Maven / Gradle / Ivy
package net.serenitybdd.screenplay.targets;
import net.serenitybdd.core.pages.ListOfWebElementFacades;
import net.serenitybdd.core.pages.PageObject;
import net.serenitybdd.core.pages.WebElementFacade;
import net.serenitybdd.core.pages.WebElementFacadeImpl;
import net.serenitybdd.core.selectors.Selectors;
import net.thucydides.core.steps.StepEventBus;
import net.thucydides.core.webdriver.exceptions.ElementNotFoundAfterTimeoutError;
import org.openqa.selenium.By;
import org.openqa.selenium.SearchContext;
import org.openqa.selenium.WebDriver;
import java.time.Duration;
import java.util.*;
import java.util.stream.Collectors;
import static java.util.Arrays.stream;
public class MultiXPathOrCssTarget extends SearchableTarget {
private final String[] cssOrXPathSelectors;
public MultiXPathOrCssTarget(String targetElementName, Optional
© 2015 - 2024 Weber Informatics LLC | Privacy Policy