public class WebElementEnhanced extends WebElementProxy
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.
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
NOT_INVOKE_WEB_ELEMENT_METHODS |
protected org.openqa.selenium.WebDriver |
webDriver |
webElement| Constructor and Description |
|---|
WebElementEnhanced()
Only for internal use
|
WebElementEnhanced(org.openqa.selenium.WebElement webElement,
org.openqa.selenium.WebDriver webDriver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(java.util.function.Function check) |
void |
click() |
void |
click(boolean scrollTo) |
boolean |
exists() |
WebElementEnhanced |
findElementEnhanced(org.openqa.selenium.By by) |
List<WebElementEnhanced> |
findElementsEnhanced(org.openqa.selenium.By by) |
String |
getHtml() |
boolean |
hasChildren(org.openqa.selenium.By by) |
boolean |
isJQueryAvailable() |
void |
scrollTo() |
void |
scrollToWithDefaultJavaScript() |
void |
scrollToWithJQuery() |
void |
setValue(String value) |
void |
setWebDriver(org.openqa.selenium.WebDriver webDriver) |
void |
waitFor(java.util.function.Function<org.openqa.selenium.WebDriver,Boolean> function,
int maxWaitTimeInSeconds,
String errorMessage) |
void |
waitForDisplayed(int maxWaitTimeInSeconds) |
void |
waitForExisting(int maxWaitTimeInSeconds) |
clear, findElement, findElements, getAttribute, getCssValue, getLocation, getRect, getScreenshotAs, getSize, getTagName, getText, getWebElement, isDisplayed, isEnabled, isSelected, sendKeys, setWebElement, submitpublic WebElementEnhanced()
public WebElementEnhanced(org.openqa.selenium.WebElement webElement,
org.openqa.selenium.WebDriver webDriver)
public void setWebDriver(org.openqa.selenium.WebDriver webDriver)
public List<WebElementEnhanced> findElementsEnhanced(org.openqa.selenium.By by)
public String getHtml()
public WebElementEnhanced findElementEnhanced(org.openqa.selenium.By by)
public void waitFor(java.util.function.Function<org.openqa.selenium.WebDriver,Boolean> function, int maxWaitTimeInSeconds, String errorMessage)
public void waitForExisting(int maxWaitTimeInSeconds)
public void waitForDisplayed(int maxWaitTimeInSeconds)
public void scrollTo()
public boolean isJQueryAvailable()
public void scrollToWithJQuery()
public void scrollToWithDefaultJavaScript()
public void click()
public void click(boolean scrollTo)
public void setValue(String value)
public boolean exists()
public boolean hasChildren(org.openqa.selenium.By by)
public boolean check(java.util.function.Function check)
Copyright © 2017–2020. All rights reserved.