Class WebElementSource

java.lang.Object
com.codeborne.selenide.impl.WebElementSource
Direct Known Subclasses:
CollectionElement, CollectionElementByCondition, ElementFinder, JSElementFinder, LastCollectionElement, LazyWebElementSnapshot, WebElementWrapper

@ParametersAreNonnullByDefault public abstract class WebElementSource extends Object
  • Constructor Details

    • WebElementSource

      public WebElementSource()
  • Method Details

    • driver

      @CheckReturnValue @Nonnull public abstract Driver driver()
    • getWebElement

      @CheckReturnValue @Nonnull public abstract org.openqa.selenium.WebElement getWebElement()
    • getSearchCriteria

      @CheckReturnValue @Nonnull public abstract String getSearchCriteria()
    • setAlias

      public void setAlias(String alias)
    • getAlias

      @CheckReturnValue @Nonnull public Alias getAlias()
    • description

      @CheckReturnValue @Nonnull public String description()
    • toString

      @CheckReturnValue @Nonnull public String toString()
      Overrides:
      toString in class Object
    • 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(WebElementCondition condition, Throwable cause)
    • getSelector

      @CheckReturnValue @Nonnull public static org.openqa.selenium.By getSelector(Object arg)
    • checkCondition

      public void checkCondition(String prefix, WebElementCondition condition, boolean invert)
    • findAndAssertElementIsVisible

      @Nonnull @CheckReturnValue public org.openqa.selenium.WebElement findAndAssertElementIsVisible()
    • findAndAssertElementIsInteractable

      @Nonnull @CheckReturnValue public org.openqa.selenium.WebElement findAndAssertElementIsInteractable()
      Asserts that returned element can be interacted with.
      Returns:
      element or throws ElementShould/ElementShouldNot exceptions
    • findAndAssertElementIsClickable

      @Nonnull @CheckReturnValue public org.openqa.selenium.WebElement findAndAssertElementIsClickable()
      Asserts that returned element is enabled and can be interacted with.
      Returns:
      element or throws ElementShould/ElementShouldNot exceptions
      Since:
      6.15.0
    • 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