public class WebElementEnhanced extends Object
Copyright (c) 2018 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 |
protected org.openqa.selenium.WebElement |
webElement |
| Constructor and Description |
|---|
WebElementEnhanced() |
WebElementEnhanced(org.openqa.selenium.WebElement webElement) |
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 |
clear() |
void |
click() |
void |
click(boolean scrollTo) |
boolean |
exists() |
org.openqa.selenium.WebElement |
findElement(org.openqa.selenium.By by) |
WebElementEnhanced |
findElementEnhanced(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
List<WebElementEnhanced> |
findElementsEnhanced(org.openqa.selenium.By by) |
String |
getAttribute(String name) |
String |
getCssValue(String propertyName) |
org.openqa.selenium.Point |
getLocation() |
org.openqa.selenium.Rectangle |
getRect() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
org.openqa.selenium.WebElement |
getWebElement() |
boolean |
hasChildren(org.openqa.selenium.By by) |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isJQueryAvailable() |
boolean |
isSelected() |
void |
scrollTo() |
void |
scrollToWithDefaultJavaScript() |
void |
scrollToWithJQuery() |
void |
sendKeys(CharSequence... keysToSend) |
void |
setValue(String value) |
void |
setWebDriver(org.openqa.selenium.WebDriver webDriver) |
void |
setWebElement(org.openqa.selenium.WebElement webElement) |
void |
submit() |
void |
waitForDisplayed(int maxWaitTimeInSeconds) |
protected org.openqa.selenium.WebElement webElement
protected org.openqa.selenium.WebDriver webDriver
public WebElementEnhanced()
public WebElementEnhanced(org.openqa.selenium.WebElement webElement)
public WebElementEnhanced(org.openqa.selenium.WebElement webElement,
org.openqa.selenium.WebDriver webDriver)
public org.openqa.selenium.WebElement getWebElement()
public void setWebElement(org.openqa.selenium.WebElement webElement)
public void setWebDriver(org.openqa.selenium.WebDriver webDriver)
public void sendKeys(CharSequence... keysToSend)
public org.openqa.selenium.Point getLocation()
public void submit()
public org.openqa.selenium.Dimension getSize()
public org.openqa.selenium.Rectangle getRect()
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
public List<WebElementEnhanced> findElementsEnhanced(org.openqa.selenium.By by)
public String getText()
public String getTagName()
public boolean isSelected()
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
public WebElementEnhanced findElementEnhanced(org.openqa.selenium.By by)
public boolean isEnabled()
public boolean isDisplayed()
public void clear()
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType)
throws org.openqa.selenium.WebDriverException
org.openqa.selenium.WebDriverExceptionpublic 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–2019. All rights reserved.