org.openqa.selenium.android.library
Class AndroidWebElement
java.lang.Object
org.openqa.selenium.android.library.AndroidWebElement
- All Implemented Interfaces:
- org.openqa.selenium.internal.Locatable, org.openqa.selenium.internal.WrapsDriver, org.openqa.selenium.SearchContext, org.openqa.selenium.WebElement
public class AndroidWebElement
- extends Object
- implements org.openqa.selenium.WebElement, org.openqa.selenium.SearchContext, org.openqa.selenium.internal.WrapsDriver, org.openqa.selenium.internal.Locatable
Represents an Android HTML element.
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
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
clear
public void clear()
- Specified by:
clear in interface org.openqa.selenium.WebElement
sendKeys
public void sendKeys(CharSequence... value)
- Specified by:
sendKeys 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
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
- Specified by:
findElement in interface org.openqa.selenium.SearchContext- Specified by:
findElement 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
dragAndDropBy
public void dragAndDropBy(int moveRightBy,
int moveDownBy)
dragAndDropOn
public void dragAndDropOn(AndroidWebElement element)
getLocation
public org.openqa.selenium.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 org.openqa.selenium.WebElement
- Returns:
- A point, containing the location of the top left-hand corner of the element
getSize
public org.openqa.selenium.Dimension getSize()
- Specified by:
getSize in interface org.openqa.selenium.WebElement
- Returns:
- a
Point where x is the width, and y is the height.
getValueOfCssProperty
public String getValueOfCssProperty(String property)
hover
public void hover()
isDisplayed
public boolean isDisplayed()
- Specified by:
isDisplayed in interface org.openqa.selenium.WebElement
getWrappedDriver
public org.openqa.selenium.WebDriver getWrappedDriver()
- Specified by:
getWrappedDriver in interface org.openqa.selenium.internal.WrapsDriver
getCssValue
public String getCssValue(String propertyName)
- Specified by:
getCssValue in interface org.openqa.selenium.WebElement
getCoordinates
public org.openqa.selenium.interactions.internal.Coordinates getCoordinates()
- Specified by:
getCoordinates in interface org.openqa.selenium.internal.Locatable
getLocationOnScreenOnceScrolledIntoView
public org.openqa.selenium.Point getLocationOnScreenOnceScrolledIntoView()
- Specified by:
getLocationOnScreenOnceScrolledIntoView in interface org.openqa.selenium.internal.Locatable
Copyright © 2012. All Rights Reserved.