Class WebElementEnhanced
- java.lang.Object
-
- de.telekom.test.bddwebapp.frontend.element.WebElementProxy
-
- de.telekom.test.bddwebapp.frontend.element.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 Summary
Fields Modifier and Type Field Description static List<String>NOT_INVOKE_WEB_ELEMENT_METHODSprotected org.openqa.selenium.WebDriverwebDriver-
Fields inherited from class de.telekom.test.bddwebapp.frontend.element.WebElementProxy
webElement
-
-
Constructor Summary
Constructors Constructor Description WebElementEnhanced()Only for internal useWebElementEnhanced(org.openqa.selenium.WebElement webElement, org.openqa.selenium.WebDriver webDriver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheck(Function check)voidclick()voidclick(boolean scrollTo)booleanexists()WebElementEnhancedfindElementEnhanced(org.openqa.selenium.By by)List<WebElementEnhanced>findElementsEnhanced(org.openqa.selenium.By by)StringgetHtml()booleanhasChildren(org.openqa.selenium.By by)booleanisJQueryAvailable()voidscrollTo()voidscrollToWithDefaultJavaScript()voidscrollToWithJQuery()voidsetValue(String value)voidsetWebDriver(org.openqa.selenium.WebDriver webDriver)voidwaitFor(Function<org.openqa.selenium.WebDriver,Boolean> function, int maxWaitTimeInSeconds, String errorMessage)voidwaitForDisplayed(int maxWaitTimeInSeconds)voidwaitForExisting(int maxWaitTimeInSeconds)-
Methods inherited from class de.telekom.test.bddwebapp.frontend.element.WebElementProxy
clear, findElement, findElements, getAttribute, getCssValue, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getWebElement, isDisplayed, isEnabled, isSelected, sendKeys, setWebElement, submit
-
-
-
-
Method Detail
-
setWebDriver
public void setWebDriver(org.openqa.selenium.WebDriver webDriver)
-
findElementsEnhanced
public List<WebElementEnhanced> findElementsEnhanced(org.openqa.selenium.By by)
-
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)
-
-