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() |
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() |
org.openqa.selenium.Dimension |
getSize() |
String |
getTagName() |
String |
getText() |
org.openqa.selenium.WebElement |
getWrappedElement() |
boolean |
isDisplayed() |
boolean |
isEnabled() |
boolean |
isPresent() |
boolean |
isSelected() |
void |
sendKeys(CharSequence... keysToSend) |
void |
submit() |
public GrapheneElementImpl(org.openqa.selenium.WebElement element)
public boolean isPresent()
isPresent
in interface GrapheneElement
public List<GrapheneElement> findGrapheneElements(org.openqa.selenium.By by)
findGrapheneElements
in interface GrapheneElement
public void click()
click
in interface org.openqa.selenium.WebElement
public void submit()
submit
in interface org.openqa.selenium.WebElement
public void sendKeys(CharSequence... keysToSend)
sendKeys
in interface org.openqa.selenium.WebElement
public void clear()
clear
in interface org.openqa.selenium.WebElement
public String getTagName()
getTagName
in interface org.openqa.selenium.WebElement
public String getAttribute(String name)
getAttribute
in interface org.openqa.selenium.WebElement
public boolean isSelected()
isSelected
in interface org.openqa.selenium.WebElement
public boolean isEnabled()
isEnabled
in interface org.openqa.selenium.WebElement
public String getText()
getText
in interface org.openqa.selenium.WebElement
public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
findElements
in interface org.openqa.selenium.SearchContext
findElements
in interface org.openqa.selenium.WebElement
public GrapheneElementImpl findElement(org.openqa.selenium.By by)
findElement
in interface GrapheneElement
findElement
in interface org.openqa.selenium.SearchContext
findElement
in interface org.openqa.selenium.WebElement
public boolean isDisplayed()
isDisplayed
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Point getLocation()
getLocation
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.Dimension getSize()
getSize
in interface org.openqa.selenium.WebElement
public String getCssValue(String propertyName)
getCssValue
in interface org.openqa.selenium.WebElement
public org.openqa.selenium.WebElement getWrappedElement()
getWrappedElement
in interface org.openqa.selenium.internal.WrapsElement
public org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
getCoordinates
in interface org.openqa.selenium.internal.Locatable
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.