|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.robotium.solo.WebElement
public class WebElement
Represents an element shown in a WebView.
| Constructor Summary | |
|---|---|
WebElement(String webId,
String textContent,
String name,
String className,
String tagName,
Hashtable<String,String> attributes)
Constructs this object. |
|
| Method Summary | |
|---|---|
String |
getAttribute(String attributeName)
Returns the value for the specified attribute. |
String |
getClassName()
Returns the class name. |
String |
getId()
Returns the id. |
void |
getLocationOnScreen(int[] location)
Returns the WebElements location on screen. |
int |
getLocationX()
Returns the X location. |
int |
getLocationY()
Returns the Y location. |
String |
getName()
Returns the name. |
String |
getTagName()
Returns the tag name. |
String |
getText()
Returns the text content. |
void |
setAttributes(Hashtable<String,String> attributes)
Sets the attributes. |
void |
setClassName(String className)
Sets the class name. |
void |
setId(String id)
Sets the id. |
void |
setLocationX(int locationX)
Sets the X location. |
void |
setLocationY(int locationY)
Sets the Y location. |
void |
setName(String name)
Sets the name. |
void |
setTagName(String tagName)
Sets the tag name. |
void |
setTextContent(String textContent)
Sets the text content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebElement(String webId,
String textContent,
String name,
String className,
String tagName,
Hashtable<String,String> attributes)
webId - the given web idtextContent - the given text to be setname - the given name to be setclassName - the given class name to settagName - the given tag name to be setattributes - the attributes to set| Method Detail |
|---|
public void getLocationOnScreen(int[] location)
public void setLocationX(int locationX)
locationX - the X location of the WebElementpublic void setLocationY(int locationY)
locationY - the Y location of the WebElementpublic int getLocationX()
public int getLocationY()
public String getId()
public void setId(String id)
id - the id to setpublic String getName()
public void setName(String name)
name - the name to setpublic String getClassName()
public void setClassName(String className)
className - the class name to setpublic String getTagName()
public void setTagName(String tagName)
tagName - the tag name to setpublic String getText()
public void setTextContent(String textContent)
textContent - the text content to setpublic String getAttribute(String attributeName)
public void setAttributes(Hashtable<String,String> attributes)
attributes - the attributes to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||