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

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.

Author:
Jan Papousek
  • Constructor Details

    • GrapheneElementImpl

      public GrapheneElementImpl(org.openqa.selenium.WebElement element)
  • Method Details

    • isPresent

      public boolean isPresent()
      Specified by:
      isPresent in interface GrapheneElement
    • findGrapheneElements

      public List<GrapheneElement> findGrapheneElements(org.openqa.selenium.By by)
      Specified by:
      findGrapheneElements in interface GrapheneElement
    • click

      public void click()
      Specified by:
      click in interface org.openqa.selenium.WebElement
    • submit

      public void submit()
      Specified by:
      submit in interface org.openqa.selenium.WebElement
    • sendKeys

      public void sendKeys(CharSequence... keysToSend)
      Specified by:
      sendKeys in interface org.openqa.selenium.WebElement
    • clear

      public void clear()
      Specified by:
      clear in interface org.openqa.selenium.WebElement
    • getTagName

      public String getTagName()
      Specified by:
      getTagName in interface org.openqa.selenium.WebElement
    • getAttribute

      public String getAttribute(String name)
      Specified by:
      getAttribute in interface org.openqa.selenium.WebElement
    • isSelected

      public boolean isSelected()
      Specified by:
      isSelected in interface org.openqa.selenium.WebElement
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.openqa.selenium.WebElement
    • getText

      public String getText()
      Specified by:
      getText in interface org.openqa.selenium.WebElement
    • findElements

      public List<org.openqa.selenium.WebElement> findElements(org.openqa.selenium.By by)
      Specified by:
      findElements in interface org.openqa.selenium.SearchContext
      Specified by:
      findElements in interface org.openqa.selenium.WebElement
    • findElement

      public GrapheneElementImpl findElement(org.openqa.selenium.By by)
      Specified by:
      findElement in interface GrapheneElement
      Specified by:
      findElement in interface org.openqa.selenium.SearchContext
      Specified by:
      findElement in interface org.openqa.selenium.WebElement
    • isDisplayed

      public boolean isDisplayed()
      Specified by:
      isDisplayed in interface org.openqa.selenium.WebElement
    • getLocation

      public org.openqa.selenium.Point getLocation()
      Specified by:
      getLocation in interface org.openqa.selenium.WebElement
    • getSize

      public org.openqa.selenium.Dimension getSize()
      Specified by:
      getSize in interface org.openqa.selenium.WebElement
    • getRect

      public org.openqa.selenium.Rectangle getRect()
      Specified by:
      getRect in interface org.openqa.selenium.WebElement
    • getCssValue

      public String getCssValue(String propertyName)
      Specified by:
      getCssValue in interface org.openqa.selenium.WebElement
    • getWrappedElement

      public org.openqa.selenium.WebElement getWrappedElement()
      Specified by:
      getWrappedElement in interface org.openqa.selenium.WrapsElement
    • getCoordinates

      public org.openqa.selenium.interactions.Coordinates getCoordinates()
      Specified by:
      getCoordinates in interface org.openqa.selenium.interactions.Locatable
    • getScreenshotAs

      public <X> X getScreenshotAs(org.openqa.selenium.OutputType<X> outputType) throws org.openqa.selenium.WebDriverException
      Specified by:
      getScreenshotAs in interface org.openqa.selenium.TakesScreenshot
      Throws:
      org.openqa.selenium.WebDriverException
    • getAccessibleName

      public String getAccessibleName()
      Specified by:
      getAccessibleName in interface org.openqa.selenium.WebElement
    • getAriaRole

      public String getAriaRole()
      Specified by:
      getAriaRole in interface org.openqa.selenium.WebElement
    • getDomAttribute

      public String getDomAttribute(String name)
      Specified by:
      getDomAttribute in interface org.openqa.selenium.WebElement
    • getDomProperty

      public String getDomProperty(String name)
      Specified by:
      getDomProperty in interface org.openqa.selenium.WebElement
    • getShadowRoot

      public org.openqa.selenium.SearchContext getShadowRoot()
      Specified by:
      getShadowRoot in interface org.openqa.selenium.WebElement
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • doubleClick

      public void doubleClick()
      Specified by:
      doubleClick in interface GrapheneElementAction
    • writeIntoElement

      public void writeIntoElement(String text)
      Specified by:
      writeIntoElement in interface GrapheneElementAction