org.openqa.selenium.android.library
Class AndroidWebElement

java.lang.Object
  extended by org.openqa.selenium.android.library.AndroidWebElement
All Implemented Interfaces:
Locatable, WrapsDriver, SearchContext, WebElement

public class AndroidWebElement
extends java.lang.Object
implements WebElement, SearchContext, WrapsDriver, Locatable

Represents an Android HTML element.


Method Summary
 void clear()
           
 void click()
           
 void dragAndDropBy(int moveRightBy, int moveDownBy)
           
 void dragAndDropOn(AndroidWebElement element)
           
 boolean equals(java.lang.Object o)
           
 WebElement findElement(By by)
           
 java.util.List<WebElement> findElements(By by)
           
 java.lang.String getAttribute(java.lang.String name)
           
 Coordinates getCoordinates()
           
 java.lang.String getCssValue(java.lang.String propertyName)
           
 Point getLocation()
          Where on the page is the top left-hand corner of the rendered element? it's part of RenderedWebElement
 Point getLocationOnScreenOnceScrolledIntoView()
           
 Dimension getSize()
           
 java.lang.String getTagName()
           
 java.lang.String getText()
           
 java.lang.String getValueOfCssProperty(java.lang.String property)
           
 WebDriver getWrappedDriver()
           
 int hashCode()
           
 void hover()
           
 boolean isDisplayed()
           
 boolean isEnabled()
           
 boolean isSelected()
           
 void sendKeys(java.lang.CharSequence... value)
           
 void submit()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

click

public void click()
Specified by:
click in interface WebElement

submit

public void submit()
Specified by:
submit in interface WebElement

clear

public void clear()
Specified by:
clear in interface WebElement

sendKeys

public void sendKeys(java.lang.CharSequence... value)
Specified by:
sendKeys in interface WebElement

getTagName

public java.lang.String getTagName()
Specified by:
getTagName in interface WebElement

getAttribute

public java.lang.String getAttribute(java.lang.String name)
Specified by:
getAttribute in interface WebElement

isSelected

public boolean isSelected()
Specified by:
isSelected in interface WebElement

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface WebElement

getText

public java.lang.String getText()
Specified by:
getText in interface WebElement

findElement

public WebElement findElement(By by)
Specified by:
findElement in interface SearchContext
Specified by:
findElement in interface WebElement

findElements

public java.util.List<WebElement> findElements(By by)
Specified by:
findElements in interface SearchContext
Specified by:
findElements in interface WebElement

dragAndDropBy

public void dragAndDropBy(int moveRightBy,
                          int moveDownBy)

dragAndDropOn

public void dragAndDropOn(AndroidWebElement element)

getLocation

public Point getLocation()
Where on the page is the top left-hand corner of the rendered element? it's part of RenderedWebElement

Specified by:
getLocation in interface WebElement
Returns:
A point, containing the location of the top left-hand corner of the element

getSize

public Dimension getSize()
Specified by:
getSize in interface WebElement
Returns:
a Point where x is the width, and y is the height.

getValueOfCssProperty

public java.lang.String getValueOfCssProperty(java.lang.String property)

hover

public void hover()

isDisplayed

public boolean isDisplayed()
Specified by:
isDisplayed in interface WebElement

getWrappedDriver

public WebDriver getWrappedDriver()
Specified by:
getWrappedDriver in interface WrapsDriver

getCssValue

public java.lang.String getCssValue(java.lang.String propertyName)
Specified by:
getCssValue in interface WebElement

getCoordinates

public Coordinates getCoordinates()
Specified by:
getCoordinates in interface Locatable

getLocationOnScreenOnceScrolledIntoView

public Point getLocationOnScreenOnceScrolledIntoView()
Specified by:
getLocationOnScreenOnceScrolledIntoView in interface Locatable


Copyright © 2012. All Rights Reserved.