|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Uses of By in com.jayway.android.robotium.solo |
---|
Methods in com.jayway.android.robotium.solo that return By | |
---|---|
static By |
By.className(String className)
Select a WebElement by its class name. |
static By |
By.cssSelector(String selectors)
Select a WebElement by its css selector. |
static By |
By.id(String id)
Select a WebElement by its id. |
static By |
By.name(String name)
Select a WebElement by its name. |
static By |
By.tagName(String tagName)
Select a WebElement by its tag name. |
static By |
By.textContent(String textContent)
Select a WebElement by its text content. |
static By |
By.xpath(String xpath)
Select a WebElement by its xpath. |
Methods in com.jayway.android.robotium.solo with parameters of type By | |
---|---|
void |
Solo.clearTextInWebElement(By by)
Clears text in a web element. |
void |
Solo.clickOnWebElement(By by)
Clicks on a WebElement. |
void |
Solo.clickOnWebElement(By by,
int match)
Clicks on a WebElement. |
void |
Solo.clickOnWebElement(By by,
int match,
boolean scroll)
Clicks on a WebElement. |
void |
Solo.enterTextInWebElement(By by,
String text)
Enters text in a WebElement. |
ArrayList<WebElement> |
Solo.getCurrentWebElements(By by)
Returns an ArrayList of WebElements of the specified By object currently shown in the active WebView. |
WebElement |
Solo.getWebElement(By by,
int index)
Returns a WebElement with a given index |
void |
Solo.typeTextInWebElement(By by,
String text)
Types text in a WebElement. |
void |
Solo.typeTextInWebElement(By by,
String text,
int match)
Types text in a WebElement. |
void |
Solo.waitForWebElement(By by)
Waits for a WebElement. |
void |
Solo.waitForWebElement(By by,
int timeout,
boolean scroll)
Waits for a WebElement. |
void |
Solo.waitForWebElement(By by,
int match,
int timeout,
boolean scroll)
Waits for a WebElement. |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |