Class WebElementEnhanced

  • All Implemented Interfaces:
    org.openqa.selenium.SearchContext, org.openqa.selenium.TakesScreenshot, org.openqa.selenium.WebElement

    public class WebElementEnhanced
    extends WebElementProxy
    Extends WebElement by several helper methods.
    Author:
    Daniel Keiss <daniel.keiss@telekom.de>, Tim Jödicke

    Copyright (c) 2019 Daniel Keiss, Deutsche Telekom AG This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.

    • Field Detail

      • NOT_INVOKE_WEB_ELEMENT_METHODS

        public static List<String> NOT_INVOKE_WEB_ELEMENT_METHODS
      • webDriver

        protected org.openqa.selenium.WebDriver webDriver
    • Constructor Detail

      • WebElementEnhanced

        public WebElementEnhanced()
        Only for internal use
      • WebElementEnhanced

        public WebElementEnhanced​(org.openqa.selenium.WebElement webElement,
                                  org.openqa.selenium.WebDriver webDriver)
    • Method Detail

      • setWebDriver

        public void setWebDriver​(org.openqa.selenium.WebDriver webDriver)
      • getHtml

        public String getHtml()
      • findElementEnhanced

        public WebElementEnhanced findElementEnhanced​(org.openqa.selenium.By by)
      • waitFor

        public void waitFor​(Function<org.openqa.selenium.WebDriver,​Boolean> function,
                            int maxWaitTimeInSeconds,
                            String errorMessage)
      • waitForExisting

        public void waitForExisting​(int maxWaitTimeInSeconds)
      • waitForDisplayed

        public void waitForDisplayed​(int maxWaitTimeInSeconds)
      • scrollTo

        public void scrollTo()
      • isJQueryAvailable

        public boolean isJQueryAvailable()
      • scrollToWithJQuery

        public void scrollToWithJQuery()
      • scrollToWithDefaultJavaScript

        public void scrollToWithDefaultJavaScript()
      • click

        public void click()
      • click

        public void click​(boolean scrollTo)
      • setValue

        public void setValue​(String value)
      • exists

        public boolean exists()
      • hasChildren

        public boolean hasChildren​(org.openqa.selenium.By by)
      • check

        public boolean check​(Function check)