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 TypeMethodDescriptionvoidcheckCondition(String prefix, WebElementCondition condition, boolean invert) createElementNotFoundError(WebElementCondition condition, @Nullable Throwable cause) abstract Driverdriver()find(SelenideElement proxy, Object arg, int index) List<org.openqa.selenium.WebElement>findAll()org.openqa.selenium.WebElementAsserts that returned element is enabled and can be interacted with.org.openqa.selenium.WebElementAsserts that returned element is editable.org.openqa.selenium.WebElementAsserts that returned element can be interacted with.org.openqa.selenium.WebElementgetAlias()org.openqa.selenium.SearchContextabstract Stringstatic org.openqa.selenium.BygetSelector(Object arg) abstract org.openqa.selenium.WebElementvoidtoString()
-
Constructor Details
-
WebElementSource
protected WebElementSource() -
WebElementSource
protected WebElementSource(boolean shadowRoot)
-
-
Method Details
-
driver
-
getWebElement
public abstract org.openqa.selenium.WebElement getWebElement() -
getSearchContext
public org.openqa.selenium.SearchContext getSearchContext() -
getSearchCriteria
-
setAlias
-
getAlias
-
description
-
toString
-
find
-
findAll
- Throws:
IndexOutOfBoundsException
-
createElementNotFoundError
public ElementNotFound createElementNotFoundError(WebElementCondition condition, @Nullable Throwable cause) -
getSelector
-
checkCondition
-
findAndAssertElementIsVisible
public org.openqa.selenium.WebElement findAndAssertElementIsVisible() -
findAndAssertElementIsInteractable
public org.openqa.selenium.WebElement findAndAssertElementIsInteractable()Asserts that returned element can be interacted with.- Returns:
- element or throws ElementShould/ElementShouldNot exceptions
-
findAndAssertElementIsClickable
public org.openqa.selenium.WebElement findAndAssertElementIsClickable()Asserts that returned element is enabled and can be interacted with.- Returns:
- element or throws ElementShould/ElementShouldNot exceptions
-
findAndAssertElementIsEditable
public org.openqa.selenium.WebElement findAndAssertElementIsEditable()Asserts that returned element is editable.- Returns:
- element or throws ElementShould/ElementShouldNot exceptions
-