|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.robotium.solo.By
public abstract class By
Used in conjunction with the web methods. Examples are By.id(String id) and By.cssSelector(String selector).
| Constructor Summary | |
|---|---|
By()
|
|
| Method Summary | |
|---|---|
static By |
className(String className)
Select a WebElement by its class name. |
static By |
cssSelector(String selectors)
Select a WebElement by its css selector. |
String |
getValue()
Returns the value. |
static By |
id(String id)
Select a WebElement by its id. |
static By |
name(String name)
Select a WebElement by its name. |
static By |
tagName(String tagName)
Select a WebElement by its tag name. |
static By |
textContent(String textContent)
Select a WebElement by its text content. |
static By |
xpath(String xpath)
Select a WebElement by its xpath. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public By()
| Method Detail |
|---|
public static By id(String id)
id - the id of the web element
public static By xpath(String xpath)
xpath - the xpath of the web element
public static By cssSelector(String selectors)
selectors - the css selector of the web element
public static By name(String name)
name - the name of the web element
public static By className(String className)
className - the class name of the web element
public static By textContent(String textContent)
textContent - the text content of the web element
public static By tagName(String tagName)
tagName - the tag name of the web element
public String getValue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||