Package com.codeborne.selenide.impl
Class WebElementSource
- java.lang.Object
-
- com.codeborne.selenide.impl.WebElementSource
-
- Direct Known Subclasses:
CollectionElement,CollectionElementByCondition,ElementFinder,LastCollectionElement,WebElementWrapper
@ParametersAreNonnullByDefault public abstract class WebElementSource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WebElementSource()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.openqa.selenium.WebElementcheckCondition(java.lang.String prefix, Condition condition, boolean invert)ElementNotFoundcreateElementNotFoundError(Condition condition, java.lang.Throwable lastError)abstract Driverdriver()SelenideElementfind(SelenideElement proxy, java.lang.Object arg, int index)java.util.List<org.openqa.selenium.WebElement>findAll()org.openqa.selenium.WebElementfindAndAssertElementIsInteractable()Asserts that returned element can be interacted with.abstract java.lang.StringgetSearchCriteria()static org.openqa.selenium.BygetSelector(java.lang.Object arg)abstract org.openqa.selenium.WebElementgetWebElement()
-
-
-
Method Detail
-
driver
@CheckReturnValue @Nonnull public abstract Driver driver()
-
getWebElement
@CheckReturnValue @Nonnull public abstract org.openqa.selenium.WebElement getWebElement()
-
getSearchCriteria
@CheckReturnValue @Nonnull public abstract java.lang.String getSearchCriteria()
-
find
@CheckReturnValue @Nonnull public SelenideElement find(SelenideElement proxy, java.lang.Object arg, int index)
-
findAll
@CheckReturnValue @Nonnull public java.util.List<org.openqa.selenium.WebElement> findAll() throws java.lang.IndexOutOfBoundsException- Throws:
java.lang.IndexOutOfBoundsException
-
createElementNotFoundError
@CheckReturnValue @Nonnull public ElementNotFound createElementNotFoundError(Condition condition, java.lang.Throwable lastError)
-
getSelector
@CheckReturnValue @Nonnull public static org.openqa.selenium.By getSelector(java.lang.Object arg)
-
checkCondition
@Nullable public org.openqa.selenium.WebElement checkCondition(java.lang.String prefix, Condition condition, boolean invert)
-
findAndAssertElementIsInteractable
@CheckReturnValue @Nonnull public org.openqa.selenium.WebElement findAndAssertElementIsInteractable()
Asserts that returned element can be interacted with. Elements which are transparent (opacity:0) are considered to be invisible, but interactable. User (as of 05.12.2018) can click, doubleClick etc., and enter text etc. to transparent elements for all major browsers- Returns:
- element or throws ElementShould/ElementShouldNot exceptions
-
-