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