Class ElementFinder


  • @ParametersAreNonnullByDefault
    public class ElementFinder
    extends WebElementSource
    • Method Detail

      • wrap

        @CheckReturnValue
        @Nonnull
        public static SelenideElement wrap​(Driver driver,
                                           org.openqa.selenium.WebElement parent,
                                           java.lang.String cssSelector)
      • wrap

        @CheckReturnValue
        @Nonnull
        public static SelenideElement wrap​(Driver driver,
                                           java.lang.String cssSelector,
                                           int index)
      • wrap

        @CheckReturnValue
        @Nonnull
        public static SelenideElement wrap​(Driver driver,
                                           org.openqa.selenium.WebElement parent,
                                           java.lang.String cssSelector,
                                           int index)
      • wrap

        @CheckReturnValue
        @Nonnull
        public static SelenideElement wrap​(Driver driver,
                                           org.openqa.selenium.By criteria)
      • wrap

        @CheckReturnValue
        @Nonnull
        public static SelenideElement wrap​(Driver driver,
                                           @Nullable
                                           org.openqa.selenium.SearchContext parent,
                                           org.openqa.selenium.By criteria,
                                           int index)
      • wrap

        @CheckReturnValue
        @Nonnull
        public static <T extends SelenideElement> T wrap​(Driver driver,
                                                         java.lang.Class<T> clazz,
                                                         @Nullable
                                                         org.openqa.selenium.SearchContext parent,
                                                         org.openqa.selenium.By criteria,
                                                         int index)
      • getWebElement

        @CheckReturnValue
        @Nonnull
        public org.openqa.selenium.WebElement getWebElement()
                                                     throws org.openqa.selenium.NoSuchElementException,
                                                            java.lang.IndexOutOfBoundsException
        Specified by:
        getWebElement in class WebElementSource
        Throws:
        org.openqa.selenium.NoSuchElementException
        java.lang.IndexOutOfBoundsException
      • findAll

        @CheckReturnValue
        @Nonnull
        public java.util.List<org.openqa.selenium.WebElement> findAll()
                                                               throws org.openqa.selenium.NoSuchElementException,
                                                                      java.lang.IndexOutOfBoundsException
        Overrides:
        findAll in class WebElementSource
        Throws:
        org.openqa.selenium.NoSuchElementException
        java.lang.IndexOutOfBoundsException
      • toString

        @CheckReturnValue
        @Nonnull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object