Package org.jboss.arquillian.graphene
Class GrapheneElementImpl
java.lang.Object
org.jboss.arquillian.graphene.GrapheneElementImpl
- All Implemented Interfaces:
GrapheneElement,GrapheneElementAction,org.openqa.selenium.interactions.Locatable,org.openqa.selenium.SearchContext,org.openqa.selenium.TakesScreenshot,org.openqa.selenium.WebElement,org.openqa.selenium.WrapsElement
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.
- Author:
- Jan Papousek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidclick()voidbooleanfindElement(org.openqa.selenium.By by) List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.By by) findGrapheneElements(org.openqa.selenium.By by) getAttribute(String name) org.openqa.selenium.interactions.CoordinatesgetCssValue(String propertyName) getDomAttribute(String name) getDomProperty(String name) org.openqa.selenium.Pointorg.openqa.selenium.RectanglegetRect()<X> XgetScreenshotAs(org.openqa.selenium.OutputType<X> outputType) org.openqa.selenium.SearchContextorg.openqa.selenium.DimensiongetSize()getText()org.openqa.selenium.WebElementinthashCode()booleanbooleanbooleanbooleanvoidsendKeys(CharSequence... keysToSend) voidsubmit()toString()voidwriteIntoElement(String text)
-
Constructor Details
-
GrapheneElementImpl
public GrapheneElementImpl(org.openqa.selenium.WebElement element)
-
-
Method Details
-
isPresent
public boolean isPresent()- Specified by:
isPresentin interfaceGrapheneElement
-
findGrapheneElements
- Specified by:
findGrapheneElementsin interfaceGrapheneElement
-
click
public void click()- Specified by:
clickin interfaceorg.openqa.selenium.WebElement
-
submit
public void submit()- Specified by:
submitin interfaceorg.openqa.selenium.WebElement
-
sendKeys
- Specified by:
sendKeysin interfaceorg.openqa.selenium.WebElement
-
clear
public void clear()- Specified by:
clearin interfaceorg.openqa.selenium.WebElement
-
getTagName
- Specified by:
getTagNamein interfaceorg.openqa.selenium.WebElement
-
getAttribute
- Specified by:
getAttributein interfaceorg.openqa.selenium.WebElement
-
isSelected
public boolean isSelected()- Specified by:
isSelectedin interfaceorg.openqa.selenium.WebElement
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceorg.openqa.selenium.WebElement
-
getText
- Specified by:
getTextin interfaceorg.openqa.selenium.WebElement
-
findElements
- Specified by:
findElementsin interfaceorg.openqa.selenium.SearchContext- Specified by:
findElementsin interfaceorg.openqa.selenium.WebElement
-
findElement
- Specified by:
findElementin interfaceGrapheneElement- Specified by:
findElementin interfaceorg.openqa.selenium.SearchContext- Specified by:
findElementin interfaceorg.openqa.selenium.WebElement
-
isDisplayed
public boolean isDisplayed()- Specified by:
isDisplayedin interfaceorg.openqa.selenium.WebElement
-
getLocation
public org.openqa.selenium.Point getLocation()- Specified by:
getLocationin interfaceorg.openqa.selenium.WebElement
-
getSize
public org.openqa.selenium.Dimension getSize()- Specified by:
getSizein interfaceorg.openqa.selenium.WebElement
-
getRect
public org.openqa.selenium.Rectangle getRect()- Specified by:
getRectin interfaceorg.openqa.selenium.WebElement
-
getCssValue
- Specified by:
getCssValuein interfaceorg.openqa.selenium.WebElement
-
getWrappedElement
public org.openqa.selenium.WebElement getWrappedElement()- Specified by:
getWrappedElementin interfaceorg.openqa.selenium.WrapsElement
-
getCoordinates
public org.openqa.selenium.interactions.Coordinates getCoordinates()- Specified by:
getCoordinatesin interfaceorg.openqa.selenium.interactions.Locatable
-
getScreenshotAs
public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) throws org.openqa.selenium.WebDriverException - Specified by:
getScreenshotAsin interfaceorg.openqa.selenium.TakesScreenshot- Throws:
org.openqa.selenium.WebDriverException
-
getAccessibleName
- Specified by:
getAccessibleNamein interfaceorg.openqa.selenium.WebElement
-
getAriaRole
- Specified by:
getAriaRolein interfaceorg.openqa.selenium.WebElement
-
getDomAttribute
- Specified by:
getDomAttributein interfaceorg.openqa.selenium.WebElement
-
getDomProperty
- Specified by:
getDomPropertyin interfaceorg.openqa.selenium.WebElement
-
getShadowRoot
public org.openqa.selenium.SearchContext getShadowRoot()- Specified by:
getShadowRootin interfaceorg.openqa.selenium.WebElement
-
hashCode
public int hashCode() -
equals
-
toString
-
doubleClick
public void doubleClick()- Specified by:
doubleClickin interfaceGrapheneElementAction
-
writeIntoElement
- Specified by:
writeIntoElementin interfaceGrapheneElementAction
-