Package com.codeborne.selenide.impl
Class JSElementFinder
java.lang.Object
com.codeborne.selenide.impl.WebElementSource
com.codeborne.selenide.impl.JSElementFinder
-
Method Summary
Modifier and TypeMethodDescriptioncreateElementNotFoundError
(Condition condition, Throwable lastError) driver()
org.openqa.selenium.WebElement
toString()
static <T extends SelenideElement>
Twrap
(Driver driver, String description, WebElementSource parent, String js) Methods inherited from class com.codeborne.selenide.impl.WebElementSource
checkCondition, description, find, findAll, findAndAssertElementIsEditable, findAndAssertElementIsInteractable, getAlias, getSelector, setAlias
-
Method Details
-
wrap
@CheckReturnValue @Nonnull public static <T extends SelenideElement> T wrap(Driver driver, String description, WebElementSource parent, String js) -
driver
- Specified by:
driver
in classWebElementSource
-
getWebElement
@CheckReturnValue @Nonnull public org.openqa.selenium.WebElement getWebElement() throws org.openqa.selenium.NoSuchElementException, IndexOutOfBoundsException- Specified by:
getWebElement
in classWebElementSource
- Throws:
org.openqa.selenium.NoSuchElementException
IndexOutOfBoundsException
-
createElementNotFoundError
@CheckReturnValue @Nonnull public ElementNotFound createElementNotFoundError(Condition condition, Throwable lastError) - Overrides:
createElementNotFoundError
in classWebElementSource
-
getSearchCriteria
- Specified by:
getSearchCriteria
in classWebElementSource
-
toString
- Overrides:
toString
in classWebElementSource
-