io.selendroid.server.model
Class AndroidRElement

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

public class AndroidRElement
extends Object
implements AndroidElement


Field Summary
 Integer id
           
 
Constructor Summary
AndroidRElement(int id)
           
 
Method Summary
 void clear()
           
 void click()
           
 void enterText(CharSequence... keysToSend)
           
 AndroidElement findElement(By by)
           
 List<AndroidElement> findElements(By by)
           
 String getAttribute(String name)
           
 Collection<AndroidElement> getChildren()
           
 Coordinates getCoordinates()
           
 Point getLocation()
           
 AndroidElement getParent()
           
 Dimension getSize()
           
 String getTagName()
           
 String getText()
           
 String id()
           
 boolean isDisplayed()
           
 boolean isEnabled()
           
 boolean isSelected()
           
 void setText(CharSequence... keysToSend)
           
 void submit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface io.selendroid.server.model.AndroidElement
toString
 

Field Detail

id

public Integer id
Constructor Detail

AndroidRElement

public AndroidRElement(int id)
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

getText

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

click

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

submit

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

isSelected

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

isDisplayed

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

isEnabled

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

clear

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

getLocation

public Point getLocation()
Specified by:
getLocation in interface AndroidElement

getCoordinates

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

getSize

public Dimension getSize()
Specified by:
getSize in interface AndroidElement

getAttribute

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

getTagName

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

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.