io.selendroid.server.model
Class AndroidWebElement

java.lang.Object
  extended by io.selendroid.server.model.AndroidWebElement
All Implemented Interfaces:
AndroidElement

public class AndroidWebElement
extends Object
implements AndroidElement


Constructor Summary
AndroidWebElement(String id, android.webkit.WebView webview, SelendroidWebDriver driver, KnownElements knownElements)
           
 
Method Summary
 void clear()
           
 void click()
           
 void enterText(CharSequence... keysToSend)
           
 boolean equals(Object obj)
           
 AndroidElement findElement(By by)
           
 List<AndroidElement> findElements(By by)
           
 String getAttribute(String name)
           
 Collection<AndroidElement> getChildren()
           
 Coordinates getCoordinates()
           
 String getId()
           
 Point getLocation()
          Where on the page is the top left-hand corner of the rendered element? it's part of RenderedWebElement
 AndroidElement getParent()
           
 Dimension getSize()
           
 String getTagName()
           
 String getText()
           
 int hashCode()
           
 String id()
           
 boolean isDisplayed()
           
 boolean isEnabled()
           
 boolean isSelected()
           
 void sendKeys(CharSequence value)
           
 void setText(CharSequence... keysToSend)
           
 void submit()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AndroidWebElement

public AndroidWebElement(String id,
                         android.webkit.WebView webview,
                         SelendroidWebDriver driver,
                         KnownElements knownElements)
Method Detail

getParent

public AndroidElement getParent()
Specified by:
getParent in interface AndroidElement

getChildren

public Collection<AndroidElement> getChildren()
Specified by:
getChildren in interface AndroidElement

findElement

public AndroidElement findElement(By by)
                           throws NoSuchElementException
Specified by:
findElement in interface AndroidElement
Throws:
NoSuchElementException

findElements

public List<AndroidElement> findElements(By by)
                                  throws NoSuchElementException
Specified by:
findElements in interface AndroidElement
Throws:
NoSuchElementException

enterText

public void enterText(CharSequence... keysToSend)
Specified by:
enterText in interface AndroidElement

sendKeys

public void sendKeys(CharSequence value)

isEnabled

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

isSelected

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

getText

public String getText()
Specified by:
getText in interface AndroidElement

getTagName

public String getTagName()
Specified by:
getTagName in interface AndroidElement

isDisplayed

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

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 AndroidElement
Returns:
A point, containing the location of the top left-hand corner of the element

getSize

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

click

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

submit

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

clear

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

getAttribute

public String getAttribute(String name)
Specified by:
getAttribute in interface AndroidElement

getId

public String getId()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getCoordinates

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

toString

public String toString()
Specified by:
toString in interface AndroidElement
Overrides:
toString in class Object

setText

public void setText(CharSequence... keysToSend)
Specified by:
setText in interface AndroidElement

id

public String id()
Specified by:
id in interface AndroidElement


Copyright © 2014. All rights reserved.