
public class GrapheneElementImpl extends Object implements GrapheneElement
Implementation of GrapheneElement - interface for Graphene extensions of WebElement.
Following methods are provided over the WebElement interface:
Important: GrapheneElementImpl is not intended for extension, do not subclass it. The
GrapheneElementImpl might become abstract class or interface in the future. It can't be final because then it couldn't be
proxied by Graphene.
| Constructor and Description |
|---|
GrapheneElementImpl(org.openqa.selenium.WebElement element) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
click() |
boolean |
equals(Object obj) |
GrapheneElementImpl |
findElement(org.openqa.selenium.By by) |
List<org.openqa.selenium.WebElement> |
findElements(org.openqa.selenium.By by) |
List<GrapheneElement> |
findGrapheneElements(org.openqa.selenium.By by) |
String |
getAttribute(String name) |
org.openqa.selenium.interactions.internal.Coordinates |
getCoordinates() |
String |
getCssValue(String propertyName) |
org.openqa.selenium.Point |
getLocation() |
<X> X |
getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
org.openqa.selenium.WebElement |
getWrappedElement() |
int |
hashCode() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isPresent() |
boolean |
isSelected() |
void |
sendKeys(CharSequence... keysToSend) |
void |
submit() |
String |
toString() |
public GrapheneElementImpl(org.openqa.selenium.WebElement element)
public boolean isPresent()
isPresent in interface GrapheneElementpublic List<GrapheneElement> findGrapheneElements(org.openqa.selenium.By by)
findGrapheneElements in interface GrapheneElementpublic void click()
click in interface org.openqa.selenium.WebElementpublic void submit()
submit in interface org.openqa.selenium.WebElementpublic void sendKeys(CharSequence... keysToSend)
sendKeys in interface org.openqa.selenium.WebElementpublic void clear()
clear in interface org.openqa.selenium.WebElementpublic String getTagName()
getTagName in interface org.openqa.selenium.WebElementpublic String getAttribute(String name)
getAttribute in interface org.openqa.selenium.WebElementpublic boolean isSelected()
isSelected in interface org.openqa.selenium.WebElementpublic boolean isEnabled()
isEnabled in interface org.openqa.selenium.WebElementpublic String getText()
getText in interface org.openqa.selenium.WebElementpublic List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements in interface org.openqa.selenium.SearchContextfindElements in interface org.openqa.selenium.WebElementpublic GrapheneElementImpl findElement(org.openqa.selenium.By by)
findElement in interface GrapheneElementfindElement in interface org.openqa.selenium.SearchContextfindElement in interface org.openqa.selenium.WebElementpublic boolean isDisplayed()
isDisplayed in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Point getLocation()
getLocation in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.Dimension getSize()
getSize in interface org.openqa.selenium.WebElementpublic String getCssValue(String propertyName)
getCssValue in interface org.openqa.selenium.WebElementpublic org.openqa.selenium.WebElement getWrappedElement()
getWrappedElement in interface org.openqa.selenium.internal.WrapsElementpublic org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
getCoordinates in interface org.openqa.selenium.internal.Locatablepublic <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType)
throws org.openqa.selenium.WebDriverException
getScreenshotAs in interface org.openqa.selenium.TakesScreenshotorg.openqa.selenium.WebDriverExceptionCopyright © 2015 JBoss by Red Hat. All rights reserved.