Class WebElementSource

    • Constructor Detail

      • WebElementSource

        public WebElementSource()
    • 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()
      • 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