Package | Description |
---|---|
com.jayway.android.robotium.remotecontrol.solo |
Modifier and Type | Method and Description |
---|---|
boolean |
Solo.assertMemoryNotLow()
Asserts that the available memory on the device or system is not low.
|
boolean |
Solo.clearTextInWebElement(By by)
Clears text in a WebElement matching the specified By object.
|
boolean |
Solo.clickOnWebElement(By by)
Clicks a WebElement matching the specified By object.
|
boolean |
Solo.clickOnWebElement(By by,
int match)
Clicks a WebElement matching the specified By object.
|
boolean |
Solo.clickOnWebElement(By by,
int match,
boolean scroll)
Clicks a WebElement matching the specified By object.
|
boolean |
Solo.clickOnWebElement(java.lang.String webElementUID)
Clicks a WebElement stored in cache with a reference.
|
(package private) java.lang.String |
Solo.config_getScreenshotFileType()
Gets the current Solo.Config.screenshotFileType String value.
|
(package private) java.lang.String |
Solo.config_getScreenshotSavePath()
Gets the current Solo.Config.screenshotSavePath String value.
|
(package private) boolean |
Solo.config_getShouldScroll()
Gets the current Solo.Config.shouldScroll boolean value.
|
(package private) boolean |
Solo.config_getUseJavaScriptToClickWebElements()
Gets the current Solo.Config.useJavaScriptToClickWebElements boolean value.
|
(package private) boolean |
Solo.config_setScreenshotFileType(java.lang.String fileType)
Sets the Solo.Config.screenshotFileType value.
|
(package private) boolean |
Solo.config_setScreenshotSavePath(java.lang.String savePath)
Sets the Solo.Config.screenshotSavePath String value.
|
(package private) boolean |
Solo.config_setShouldScroll(boolean shouldScroll)
Sets the Solo.Config.shouldScroll boolean value.
|
(package private) boolean |
Solo.config_setUseJavaScriptToClickWebElements(boolean shouldScroll)
Sets the Solo.Config.shouldScroll boolean value.
|
boolean |
Solo.enterTextInWebElement(By by,
java.lang.String text)
Enters text in a WebElement matching the specified By object.
|
boolean |
Solo.getScreenshotSequence(java.lang.String filename,
boolean onlyLasttime,
java.lang.String destinationDir,
java.lang.String serialNumber)
This method is used to retrieve all screenshots of sequence from the device.
REQUIRES: As android command 'adb pull' is used to get the sequence, so this method needs to know where to find 'adb' command, so user MUST set 'android sdk path' to Environment ANDROID_HOME or ANDROID_SDK It is MUST be called in following order: 1. |
java.awt.image.BufferedImage |
Solo.getScreenshotSequence(java.lang.String filename,
int index)
This method is used to retrieve one of the screenshot sequence from the device.
It is MUST be called in following order: 1. |
int |
Solo.getScreenshotSequenceSize(java.lang.String filename,
boolean onlyLasttime,
int timeoutSecond)
This method is used to retrieve number of the screenshot sequence generated at the device.
It is MUST be called in following order: 1. |
java.lang.String |
Solo.getTagForView(java.lang.String uidView)
Returns a Tag for a View.
|
boolean |
Solo.hideSoftKeyboard()
Hides the soft keyboard.
|
boolean |
Solo.isCheckBoxChecked(int index)
Checks if the CheckBox with a given index is checked.
|
boolean |
Solo.isCheckBoxChecked(java.lang.String text)
Checks if the CheckBox with the given text is checked.
|
boolean |
Solo.isRadioButtonChecked(int index)
Checks if the RadioButton with a given index is checked.
|
boolean |
Solo.isRadioButtonChecked(java.lang.String text)
Checks if the RadioButton with the given text is checked.
|
boolean |
Solo.isSpinnerTextSelected(int index,
java.lang.String text)
Checks if the given text is selected in the given Spinner.
|
boolean |
Solo.isSpinnerTextSelected(java.lang.String text)
Checks if the given text is selected in any Spinner located in the current screen.
|
boolean |
Solo.isTextChecked(java.lang.String text)
Checks if the given Text is checked.
|
boolean |
Solo.isToggleButtonChecked(int index)
Checks if the ToggleButton at the give index is checked.
|
boolean |
Solo.isToggleButtonChecked(java.lang.String text)
Checks if a ToggleButton with the give text is checked.
|
boolean |
Solo.pinchToZoom(PointF startPoint1,
PointF startPoint2,
PointF endPoint1,
PointF endPoint2)
Zooms in or out if startPoint1 and startPoint2 are larger or smaller then endPoint1 and endPoint2.
|
boolean |
Solo.pressSoftKeyboardNextButton()
Press the soft keyboard Next button.
|
boolean |
Solo.pressSoftKeyboardSearchButton()
Press the soft keyboard Search button.
|
boolean |
Solo.rotateLarge(PointF center1,
PointF center2)
Draws two semi-circles at the specified centers.
|
boolean |
Solo.rotateSmall(PointF center1,
PointF center2)
Draws two semi-circles at the specified centers.
|
boolean |
Solo.scrollDown()
Scrolls down the screen.
|
boolean |
Solo.scrollDownList(int index)
Scrolls down a list with the given index.
|
boolean |
Solo.scrollDownListUID(java.lang.String uidView)
Scrolls down a list with the given Reference UID.
|
boolean |
Solo.scrollListToBottom(int index)
Scrolls down a list with the given index all the way to the bottom.
|
boolean |
Solo.scrollListToBottomUID(java.lang.String uidView)
Scrolls down a list with the given UID all the way to the bottom.
|
boolean |
Solo.scrollListToLine(int index,
int line)
Scrolls a list with the given index to the specified line.
|
boolean |
Solo.scrollListToLineUID(java.lang.String uidView,
int line)
Scrolls a list with the given UID to the specified line.
|
boolean |
Solo.scrollListToTop(int index)
Scrolls up a list with the given index all the way to the top.
|
boolean |
Solo.scrollListToTopUID(java.lang.String uidView)
Scrolls up a list with the given UID all the way to the top.
|
boolean |
Solo.scrollToBottom()
Scrolls to the bottom of the screen.
|
boolean |
Solo.scrollToTop()
Scrolls to the top of the screen.
|
boolean |
Solo.scrollUp()
Scrolls up the screen.
|
boolean |
Solo.scrollUpList(int index)
Scrolls up a list with the given index.
|
boolean |
Solo.scrollUpListUID(java.lang.String uidView)
Scrolls up a list with the given reference id.
|
boolean |
Solo.scrollViewToSide(java.lang.String uidView,
int side)
Scrolls horizontally a view with the given UID.
|
boolean |
Solo.scrollViewToSide(java.lang.String uidView,
int side,
float scrollPosition)
Scrolls horizontally a view with the given UID.
|
boolean |
Solo.scrollViewToSide(java.lang.String uidView,
int side,
float scrollPosition,
int stepCount)
Scrolls horizontally a view with the given UID.
|
boolean |
Solo.searchButton(java.lang.String text)
Searches for a Button with the given text and returns true if at least one is found.
|
boolean |
Solo.searchButton(java.lang.String text,
boolean onlyVisible)
Searches for a Button with the given text and returns true if at least one is found.
|
boolean |
Solo.searchButton(java.lang.String text,
int minimumNumberOfMatches)
Searches for a Button with the given text and returns true if found at least a given number of times.
|
boolean |
Solo.searchButton(java.lang.String text,
int minimumNumberOfMatches,
boolean onlyVisible)
Searches for a Button with the given text and returns true if found at least a given number of times.
|
boolean |
Solo.searchEditText(java.lang.String text)
Searches for an EditText with the given text and returns true if at least one is found.
|
boolean |
Solo.searchText(java.lang.String text)
Searches for a TextView with the given text and returns true if at least one is found.
|
boolean |
Solo.searchText(java.lang.String text,
boolean onlyVisible)
Searches for a TextView with the given text and returns true if at least one is found.
|
boolean |
Solo.searchText(java.lang.String text,
int minimumNumberOfMatches)
Searches for a TextView with the given text and returns true if found at least a given number of times.
|
boolean |
Solo.searchText(java.lang.String text,
int minimumNumberOfMatches,
boolean scroll)
Searches for a TextView with the given text and returns true if found at least a given number of times.
|
boolean |
Solo.searchText(java.lang.String text,
int minimumNumberOfMatches,
boolean scroll,
boolean onlyVisible)
Searches for a TextView with the given text and returns true if found at least a given number of times.
|
boolean |
Solo.searchToggleButton(java.lang.String text)
Searches for a ToggleButton with the given text and returns true if at least one is found.
|
boolean |
Solo.searchToggleButton(java.lang.String text,
int minimumNumberOfMatches)
Searches for a ToggleButton with the given text and returns true if found at least a given number of times.
|
boolean |
Solo.swipe(PointF startPoint1,
PointF startPoint2,
PointF endPoint1,
PointF endPoint2)
Swipes with two fingers in a linear path determined by starting and ending points.
|
boolean |
Solo.typeTextInWebElement(By by,
java.lang.String text)
Types text in a WebElement matching the specified By object.
|
boolean |
Solo.typeTextInWebElement(By by,
java.lang.String text,
int match)
Types text in a WebElement matching the specified By object and index.
|
boolean |
Solo.typeTextInWebElement(java.lang.String webElementUID,
java.lang.String text)
Types text in a WebElement stored in remote cache by a reference UID.
|
boolean |
Solo.unlockScreen()
Unlocks the lock screen.
|
boolean |
Solo.waitForActivity(java.lang.String activityname)
Waits for the given Activity.
|
boolean |
Solo.waitForActivity(java.lang.String activityname,
int timeout)
Waits for the given Activity for up to the specified timeout milliseconds.
|
boolean |
Solo.waitForActivityByClass(java.lang.String activityClassName)
Waits for an Activity matching the specified class.
|
boolean |
Solo.waitForActivityByClass(java.lang.String activityClassName,
int timeout)
Waits for an Activity matching the specified class.
|
boolean |
Solo.waitForCondition(Condition condition,
int timeout)
Waits for the condition to be satisfied.
|
boolean |
Solo.waitForDialogToClose()
Waits for a Dialog to close.
|
boolean |
Solo.waitForDialogToClose(int millis)
Waits for a Dialog to close.
|
boolean |
Solo.waitForDialogToOpen()
Waits for a Dialog to open in a default Solo timeout period.
|
boolean |
Solo.waitForDialogToOpen(int millis)
Waits for a Dialog to open.
|
boolean |
Solo.waitForEmptyActivityStack(int millis)
Wait for the activity stack to be empty.
|
boolean |
Solo.waitForFragmentById(int id,
int timeout)
Waits for the given V4 Fragment for up to the specified timeout milliseconds.
|
boolean |
Solo.waitForFragmentByTag(java.lang.String tag,
int timeout)
Waits for the given V4 Fragment for up to the specified timeout milliseconds.
|
boolean |
Solo.waitForLogMessage(java.lang.String text,
int timeout)
Waits for specific text in the android log within a timeout period.
|
boolean |
Solo.waitForText(java.lang.String text)
Waits for a text to be shown.
|
boolean |
Solo.waitForText(java.lang.String text,
int minimumNumberOfMatches,
long timeout)
Waits for a text to be shown.
|
boolean |
Solo.waitForText(java.lang.String text,
int minimumNumberOfMatches,
long timeout,
boolean scroll)
Waits for a text to be shown.
|
boolean |
Solo.waitForText(java.lang.String text,
int minimumNumberOfMatches,
long timeout,
boolean scroll,
boolean onlyVisible)
Waits for a text to be shown.
|
boolean |
Solo.waitForView(int id)
Waits for a View matching the specified resource id.
|
boolean |
Solo.waitForView(int id,
int minimumNumberOfMatches,
int timeout)
Waits for a View matching the specified resource id.
|
boolean |
Solo.waitForView(int id,
int minimumNumberOfMatches,
int timeout,
boolean scroll)
Waits for a View matching the specified resource id.
|
boolean |
Solo.waitForView(java.lang.String classname)
Waits for a View of a certain classname (or extended subclass) to be shown.
|
boolean |
Solo.waitForView(java.lang.String classname,
int minimumNumberOfMatches,
long timeout)
Waits for a View of a certain classname (or extended subclass) to be shown.
|
boolean |
Solo.waitForView(java.lang.String classname,
int minimumNumberOfMatches,
long timeout,
boolean scroll)
Waits for a View of a certain classname (or extended subclass) to be shown.
|
boolean |
Solo.waitForViewByTag(java.lang.String tagUID)
Waits for the View with the previously captured TAG UID reference.
|
boolean |
Solo.waitForViewByTag(java.lang.String tagUID,
int minimumNumberOfMatches,
int timeout)
Waits for the View with the previously captured TAG UID reference.
|
boolean |
Solo.waitForViewByTag(java.lang.String tagUID,
int minimumNumberOfMatches,
int timeout,
boolean scroll)
Waits for the View with the previously captured TAG UID reference.
|
boolean |
Solo.waitForViewUID(java.lang.String uidView)
Waits for the View with the previously captured UID reference.
|
boolean |
Solo.waitForViewUID(java.lang.String uidView,
int timeout,
boolean scroll)
Waits for the View with the previously captured UID reference.
|
boolean |
Solo.waitForWebElement(By by)
Waits for a WebElement matching the specified By object.
|
boolean |
Solo.waitForWebElement(By by,
int timeout,
boolean scroll)
Waits for a WebElement matching the specified By object.
|
boolean |
Solo.waitForWebElement(By by,
int minimumNumberOfMatches,
int timeout,
boolean scroll)
Waits for a WebElement matching the specified By object.
|
Copyright © SAS Institute. All Rights Reserved.