Package com.codeborne.selenide.impl
Class ElementFinder
java.lang.Object
com.codeborne.selenide.impl.WebElementSource
com.codeborne.selenide.impl.ElementFinder
-
Method Summary
Modifier and TypeMethodDescriptioncreateElementNotFoundError(Condition condition, Throwable lastError) driver()find(SelenideElement proxy, Object arg, int index) List<org.openqa.selenium.WebElement>findAll()org.openqa.selenium.WebElementtoString()static SelenideElementwrap(Driver driver, WebElementSource parent, org.openqa.selenium.By criteria, int index) static <T extends SelenideElement>
Twrap(Driver driver, Class<T> clazz, WebElementSource parent, org.openqa.selenium.By criteria, int index) static SelenideElementstatic SelenideElementstatic <T extends SelenideElement>
Twrap(Class<T> clazz, WebElementSource element) Methods inherited from class com.codeborne.selenide.impl.WebElementSource
checkCondition, description, findAndAssertElementIsEditable, findAndAssertElementIsInteractable, getAlias, getSelector, setAlias
-
Method Details
-
wrap
@CheckReturnValue @Nonnull public static SelenideElement wrap(Driver driver, String cssSelector, int index) -
wrap
@CheckReturnValue @Nonnull public static SelenideElement wrap(Driver driver, org.openqa.selenium.By criteria) -
wrap
@CheckReturnValue @Nonnull public static SelenideElement wrap(Driver driver, @Nullable WebElementSource parent, org.openqa.selenium.By criteria, int index) -
wrap
@CheckReturnValue @Nonnull public static <T extends SelenideElement> T wrap(Driver driver, Class<T> clazz, @Nullable WebElementSource parent, org.openqa.selenium.By criteria, int index) -
wrap
@CheckReturnValue @Nonnull public static <T extends SelenideElement> T wrap(Class<T> clazz, WebElementSource element) -
find
@CheckReturnValue @Nonnull public SelenideElement find(SelenideElement proxy, Object arg, int index) - Overrides:
findin classWebElementSource
-
driver
- Specified by:
driverin classWebElementSource
-
getWebElement
@CheckReturnValue @Nonnull public org.openqa.selenium.WebElement getWebElement() throws org.openqa.selenium.NoSuchElementException, IndexOutOfBoundsException- Specified by:
getWebElementin classWebElementSource- Throws:
org.openqa.selenium.NoSuchElementExceptionIndexOutOfBoundsException
-
findAll
@CheckReturnValue @Nonnull public List<org.openqa.selenium.WebElement> findAll() throws org.openqa.selenium.NoSuchElementException, IndexOutOfBoundsException- Overrides:
findAllin classWebElementSource- Throws:
org.openqa.selenium.NoSuchElementExceptionIndexOutOfBoundsException
-
createElementNotFoundError
@CheckReturnValue @Nonnull public ElementNotFound createElementNotFoundError(Condition condition, Throwable lastError) - Overrides:
createElementNotFoundErrorin classWebElementSource
-
getSearchCriteria
- Specified by:
getSearchCriteriain classWebElementSource
-
toString
- Overrides:
toStringin classWebElementSource
-