@ParametersAreNonnullByDefault public class ElementFinder extends WebElementSource
| Modifier and Type | Method and Description |
|---|---|
ElementNotFound |
createElementNotFoundError(Condition condition,
java.lang.Throwable lastError) |
Driver |
driver() |
SelenideElement |
find(SelenideElement proxy,
java.lang.Object arg,
int index) |
java.util.List<org.openqa.selenium.WebElement> |
findAll() |
java.lang.String |
getSearchCriteria() |
org.openqa.selenium.WebElement |
getWebElement() |
java.lang.String |
toString() |
static SelenideElement |
wrap(Driver driver,
org.openqa.selenium.By criteria) |
static <T extends SelenideElement> |
wrap(Driver driver,
java.lang.Class<T> clazz,
org.openqa.selenium.SearchContext parent,
org.openqa.selenium.By criteria,
int index) |
static SelenideElement |
wrap(Driver driver,
org.openqa.selenium.SearchContext parent,
org.openqa.selenium.By criteria,
int index) |
static SelenideElement |
wrap(Driver driver,
java.lang.String cssSelector,
int index) |
static SelenideElement |
wrap(Driver driver,
org.openqa.selenium.WebElement parent,
java.lang.String cssSelector) |
static SelenideElement |
wrap(Driver driver,
org.openqa.selenium.WebElement parent,
java.lang.String cssSelector,
int index) |
checkCondition, findAndAssertElementIsInteractable, getSelector@CheckReturnValue @Nonnull public static SelenideElement wrap(Driver driver, org.openqa.selenium.WebElement parent, java.lang.String cssSelector)
@CheckReturnValue @Nonnull public static SelenideElement wrap(Driver driver, java.lang.String cssSelector, int index)
@CheckReturnValue @Nonnull public static SelenideElement wrap(Driver driver, org.openqa.selenium.WebElement parent, java.lang.String cssSelector, int index)
@CheckReturnValue @Nonnull public static SelenideElement wrap(Driver driver, org.openqa.selenium.By criteria)
@CheckReturnValue @Nonnull public static SelenideElement wrap(Driver driver, @Nullable org.openqa.selenium.SearchContext parent, org.openqa.selenium.By criteria, int index)
@CheckReturnValue @Nonnull public static <T extends SelenideElement> T wrap(Driver driver, java.lang.Class<T> clazz, @Nullable org.openqa.selenium.SearchContext parent, org.openqa.selenium.By criteria, int index)
@CheckReturnValue @Nonnull public SelenideElement find(SelenideElement proxy, java.lang.Object arg, int index)
find in class WebElementSource@CheckReturnValue @Nonnull public Driver driver()
driver in class WebElementSource@CheckReturnValue
@Nonnull
public org.openqa.selenium.WebElement getWebElement()
throws org.openqa.selenium.NoSuchElementException,
java.lang.IndexOutOfBoundsException
getWebElement in class WebElementSourceorg.openqa.selenium.NoSuchElementExceptionjava.lang.IndexOutOfBoundsException@CheckReturnValue
@Nonnull
public java.util.List<org.openqa.selenium.WebElement> findAll()
throws org.openqa.selenium.NoSuchElementException,
java.lang.IndexOutOfBoundsException
findAll in class WebElementSourceorg.openqa.selenium.NoSuchElementExceptionjava.lang.IndexOutOfBoundsException@CheckReturnValue @Nonnull public ElementNotFound createElementNotFoundError(Condition condition, java.lang.Throwable lastError)
createElementNotFoundError in class WebElementSource@CheckReturnValue @Nonnull public java.lang.String getSearchCriteria()
getSearchCriteria in class WebElementSource@CheckReturnValue @Nonnull public java.lang.String toString()
toString in class java.lang.Object