Package com.codeborne.selenide.impl
Class WebElementSource
java.lang.Object
com.codeborne.selenide.impl.WebElementSource
- Direct Known Subclasses:
CollectionElement
,CollectionElementByCondition
,ElementFinder
,JSElementFinder
,LastCollectionElement
,LazyWebElementSnapshot
,WebElementWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkCondition
(String prefix, Condition condition, boolean invert) createElementNotFoundError
(Condition condition, Throwable lastError) abstract Driver
driver()
find
(SelenideElement proxy, Object arg, int index) List<org.openqa.selenium.WebElement>
findAll()
org.openqa.selenium.WebElement
Asserts that returned element is editable.org.openqa.selenium.WebElement
Asserts that returned element can be interacted with.getAlias()
abstract String
static org.openqa.selenium.By
getSelector
(Object arg) abstract org.openqa.selenium.WebElement
void
toString()
-
Constructor Details
-
WebElementSource
public WebElementSource()
-
-
Method Details
-
driver
-
getWebElement
@CheckReturnValue @Nonnull public abstract org.openqa.selenium.WebElement getWebElement() -
getSearchCriteria
-
setAlias
-
getAlias
-
description
-
toString
-
find
@CheckReturnValue @Nonnull public SelenideElement find(SelenideElement proxy, Object arg, int index) -
findAll
@CheckReturnValue @Nonnull public List<org.openqa.selenium.WebElement> findAll() throws IndexOutOfBoundsException- Throws:
IndexOutOfBoundsException
-
createElementNotFoundError
@CheckReturnValue @Nonnull public ElementNotFound createElementNotFoundError(Condition condition, Throwable lastError) -
getSelector
-
checkCondition
-
findAndAssertElementIsInteractable
@Nonnull @CheckReturnValue public org.openqa.selenium.WebElement findAndAssertElementIsInteractable()Asserts that returned element can be interacted with.- Returns:
- element or throws ElementShould/ElementShouldNot exceptions
-
findAndAssertElementIsEditable
@Nonnull @CheckReturnValue public org.openqa.selenium.WebElement findAndAssertElementIsEditable()Asserts that returned element is editable.- Returns:
- element or throws ElementShould/ElementShouldNot exceptions
- Since:
- 6.5.0
-