Package | Description |
---|---|
com.jayway.android.robotium.remotecontrol.solo | |
org.safs.android | |
org.safs.android.engine | |
org.safs.android.remotecontrol |
Modifier and Type | Method and Description |
---|---|
boolean |
Solo.assertCurrentActivityClass(java.lang.String errormsg,
java.lang.String activityclass)
Asserts that the expected Activity is the current active one.
|
boolean |
Solo.assertCurrentActivityClass(java.lang.String errormsg,
java.lang.String activityclass,
boolean isNewInstance)
Asserts that the expected Activity is the current active one, with the possibility to verify that the expected
Activity is a new instance of the Activity.
|
boolean |
Solo.assertCurrentActivityName(java.lang.String errormsg,
java.lang.String activityname)
Asserts that the expected Activity is the current active one.
|
boolean |
Solo.assertCurrentActivityName(java.lang.String errormsg,
java.lang.String activityname,
boolean isNewInstance)
Asserts that the expected Activity is the current active one, with the possibility to verify that
the expected Activity is a new instance of the Activity.
|
boolean |
Solo.assertMemoryNotLow()
Asserts that the available memory on the device or system is not low.
|
protected void |
SoloRemoteControl.checkExceptions()
Throw a ShutdownInvocationException only *IF* we have received a localShutdown
or remoteShutdown message.
|
boolean |
Solo.clearEditText(int index)
Clears the value of an EditText.
|
boolean |
Solo.clearEditText(java.lang.String uidEditText)
Clears the value of an EditText.
|
boolean |
Solo.clearLog()
Clears the logcat log.
|
boolean |
Solo.clearTextInWebElement(By by)
Clears text in a WebElement matching the specified By object.
|
java.util.ArrayList<java.lang.String> |
Solo.clickInList(int line)
Clicks on a given list line and returns an ArrayList of String UID references for each TextView object that
the list line is showing.
|
java.util.ArrayList<java.lang.String> |
Solo.clickInList(int line,
int index)
Clicks on a given list line on a specified list and returns an ArrayList of String UID references for each TextView object that
the list line is showing.
|
java.util.ArrayList<java.lang.String> |
Solo.clickLongInList(int line)
Long Click on a given list line and returns an ArrayList of String UID references for each TextView object that
the list line is showing.
|
java.util.ArrayList<java.lang.String> |
Solo.clickLongInList(int line,
int index)
Long click on a given list line on a specified list and returns an ArrayList of String UID references for each TextView object that
the list line is showing.
|
java.util.ArrayList<java.lang.String> |
Solo.clickLongInList(int line,
int index,
int time)
Long click on a given list line on a specified list and returns an ArrayList of String UID references for each TextView object that
the list line is showing.
|
boolean |
Solo.clickLongOnScreen(float x,
float y)
Long clicks on a given coordinate on the screen.
|
boolean |
Solo.clickLongOnScreen(float x,
float y,
int time)
Long clicks on a given coordinate on the screen for a specified number of milliseconds.
|
boolean |
Solo.clickLongOnText(java.lang.String text)
Long clicks on a given View.
|
boolean |
Solo.clickLongOnText(java.lang.String text,
int match)
Long clicks on a given View.
|
boolean |
Solo.clickLongOnText(java.lang.String text,
int match,
boolean scroll)
Long clicks on a given View.
|
boolean |
Solo.clickLongOnText(java.lang.String text,
int match,
int time)
Long clicks on a given View.
|
boolean |
Solo.clickLongOnTextAndPress(java.lang.String text,
int index)
Long clicks on a given View and then selects an item from the context menu that appears.
|
boolean |
Solo.clickLongOnView(java.lang.String uidView)
Long clicks on a given View.
|
boolean |
Solo.clickLongOnView(java.lang.String uidView,
int time)
Long clicks on a given View for a specified amount of time.
|
boolean |
Solo.clickOnActionBarHomeButton()
Clicks on the Action Bar Home button.
|
boolean |
Solo.clickOnActionBarItem(int resourceID)
Clicks on an ActionBar item with a given resource id.
|
boolean |
Solo.clickOnButton(int index)
Clicks on a Button at a given index.
|
boolean |
Solo.clickOnButton(java.lang.String name)
Clicks on a Button with the given text.
|
boolean |
Solo.clickOnCheckBox(int index)
Clicks on a CheckBox at a given index.
|
boolean |
Solo.clickOnEditText(int index)
Clicks on an EditText at a given index.
|
boolean |
Solo.clickOnImage(int index)
Clicks on Image at a given index.
|
boolean |
Solo.clickOnImageButton(int index)
Clicks on a ImageButton at a given index.
|
boolean |
Solo.clickOnMenuItem(java.lang.String text)
Clicks on a menuitem with a given text.
|
boolean |
Solo.clickOnMenuItem(java.lang.String text,
boolean subMenu)
Clicks on a MenuItem with a given text.
|
boolean |
Solo.clickOnRadioButton(int index)
Clicks on a RadioButton at a given index.
|
boolean |
Solo.clickOnScreen(float x,
float y)
Clicks on a given coordinate on the screen.
|
boolean |
Solo.clickOnScreen(float x,
float y,
int numberOfClicks)
Clicks the specified coordinates rapidly a specified number of times.
|
boolean |
Solo.clickOnText(java.lang.String text)
Clicks on a View displaying the given text.
|
boolean |
Solo.clickOnText(java.lang.String text,
int match)
Clicks on a View displaying the given text.
|
boolean |
Solo.clickOnText(java.lang.String text,
int match,
boolean scroll)
Clicks on a View displaying the given text.
|
boolean |
Solo.clickOnToggleButton(java.lang.String name)
Clicks on a ToggleButton displaying the given text.
|
boolean |
Solo.clickOnView(java.lang.String uidView)
Clicks on the specified View.
|
boolean |
Solo.clickOnView(java.lang.String uidView,
boolean immediately)
Clicks on the specified View -- Robotium 4.1 required.
|
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) int |
Solo.config_getTimeoutLarge()
Gets the current Solo.Config.timeout_large value.
|
(package private) int |
Solo.config_getTimeoutSmall()
Gets the current Solo.Config.timeout_small 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) int |
Solo.config_setTimeoutLarge()
Sets a new Solo.Config.timeout_large value.
|
(package private) int |
Solo.config_setTimeoutSmall()
Sets a new Solo.Config.timeout_small value.
|
(package private) boolean |
Solo.config_setUseJavaScriptToClickWebElements(boolean shouldScroll)
Sets the Solo.Config.shouldScroll boolean value.
|
boolean |
Solo.drag(float fromX,
float toX,
float fromY,
float toY,
int stepCount)
Simulate touching a given location and dragging it to a new location.
|
boolean |
Solo.enterText(int index,
java.lang.String text)
Enter text into an EditText with the given index.
|
boolean |
Solo.enterText(java.lang.String uidEditText,
java.lang.String text)
Enter text into a given EditText.
|
boolean |
Solo.enterTextInWebElement(By by,
java.lang.String text)
Enters text in a WebElement matching the specified By object.
|
(package private) java.util.List<java.lang.String> |
Solo.filterViews(java.lang.String className,
java.util.List<java.lang.String> viewUIDList)
Filters Views based on the given class type.
|
java.util.List |
RobotiumUtils.filterViews(java.lang.String className,
java.util.List<java.lang.String> viewUIDList)
Filters Views based on the given class type.
|
(package private) java.util.List<java.lang.String> |
Solo.filterViewsByText(java.util.List<java.lang.String> viewUIDList,
java.lang.String regex)
Filters a collection of Views and returns a list that contains only Views
with text that matches a specified regular expression.
|
java.util.List |
RobotiumUtils.filterViewsByText(java.util.List<java.lang.String> viewUIDList,
java.lang.String regex)
Filters a collection of Views and returns a list that contains only Views
with text that matches a specified regular expression.
|
(package private) java.util.List<java.lang.String> |
Solo.filterViewsToSet(java.util.List<java.lang.String> classNameList,
java.util.List<java.lang.String> viewUIDList)
Filters all Views not within the given set.
|
java.util.List |
RobotiumUtils.filterViewsToSet(java.util.List<java.lang.String> classNameList,
java.util.List<java.lang.String> viewUIDList)
Filters all Views not within the given set.
|
boolean |
Solo.finalizeRemoteSolo()
Finalizes the remote Solo object and removes the ActivityMonitor.
|
boolean |
Solo.finishOpenedActivities()
All Activities that have been active are finished.
|
java.lang.String |
Solo.getActivityMonitor()
Returns a String UID for the Robotium Solo Activity Monitor.
|
java.util.ArrayList<java.lang.String> |
Solo.getAllOpenActivities()
Returns an ArrayList of String UIDs for all the opened/active Activities.
|
java.lang.String |
Solo.getButton(int index)
Returns a String UID for the Button at the given index.
|
java.lang.String |
Solo.getButton(java.lang.String text)
Returns a String UID for the Button showing the given text.
|
java.lang.String |
Solo.getButton(java.lang.String text,
boolean onlyVisible)
Returns a String UID for the Button showing the given text.
|
java.lang.String |
Solo.getCurrentActivity()
Returns a String UID reference to the current Activity.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentButtons()
Returns an ArrayList of String UIDs for all the current Buttons in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentCheckBoxes()
Returns an ArrayList of String UIDs for all the current CheckBoxes in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentDatePickers()
Returns an ArrayList of String UIDs for all the current DatePickers in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentEditTexts()
Returns an ArrayList of String UIDs for all the current EditTexts in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentGridViews()
Returns an ArrayList of String UIDs for all the current GridViews in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentImageButtons()
Returns an ArrayList of String UIDs for all the current ImageButtons in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentImageViews()
Returns an ArrayList of String UIDs for all the current ImageViews in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentListViews()
Returns an ArrayList of String UIDs for all the current ListViews in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentNumberPickers()
Returns an ArrayList of String UIDs for all the current NumberPickers in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentProgressBars()
Returns an ArrayList of String UIDs for all the current ProgressBars in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentRadioButtons()
Returns an ArrayList of String UIDs for all the current RadioButtons in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentScrollViews()
Returns an ArrayList of String UIDs for all the current ScrollViews in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentSlidingDrawers()
Returns an ArrayList of String UIDs for all the current SlidingDrawers in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentSpinners()
Returns an ArrayList of String UIDs for all the current Spinners in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentTextViews()
Returns an ArrayList of String UIDs for all the current TextViews in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentTimePickers()
Returns an ArrayList of String UIDs for all the current TimePickers in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentToggleButtons()
Returns an ArrayList of String UIDs for all the current ToggleButtons in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentViews()
Returns an ArrayList of String UIDs for all the current Views in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentViews(java.lang.String classFullName)
Returns an ArrayList of String UIDs for all the current Views
matching the specified class located in the focused Activity or Dialog. |
java.util.ArrayList<java.lang.String> |
Solo.getCurrentViews(java.lang.String classFullName,
boolean includeSubclasses)
Returns an ArrayList of String UIDs for all the current Views
matching the specified class located in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentViews(java.lang.String classFullName,
java.lang.String parentViewUID)
Returns an ArrayList of String UIDs for all the current Views
matching the specified class under the specified parent. |
java.util.ArrayList<java.lang.String> |
Solo.getCurrentViews(java.lang.String classFullName,
java.lang.String parentViewUID,
boolean includeSubclasses)
Returns an ArrayList of String UIDs for all the current Views
matching the specified class under the specified parent. |
java.util.ArrayList<java.lang.String> |
Solo.getCurrentWebElements()
Returns an ArrayList of the currently displayed WebElements in the active WebView.
|
java.util.ArrayList<java.lang.String> |
Solo.getCurrentWebElements(By by)
Returns an ArrayList of String UIDs for all the current WebElements displayed in the active WebView
matching the specified By object -- Robotium 4.1 required. |
java.lang.String |
Solo.getEditText(int index)
Returns a String UID for the EditText at the given index.
|
java.lang.String |
Solo.getEditText(java.lang.String text)
Returns a String UID for the EditText item with the given text.
|
java.lang.String |
Solo.getEditText(java.lang.String text,
boolean onlyVisible)
Returns a String UID for the EditText item with the given text.
|
java.awt.image.BufferedImage |
Solo.getGUIImage(java.lang.String viewID)
Get the image of View according to String UID reference.
|
java.lang.String |
Solo.getImage(int index)
Returns a String UID for the Image at the given index.
|
java.lang.String |
Solo.getImageButton(int index)
Returns a String UID for the ImageButton at the given index.
|
int |
Timeout.getLargeTimeout()
Gets the default timeout length of the waitFor methods.
|
(package private) int |
Solo.getLargeTimeout()
Gets the default timeout length of the waitFor methods.
|
(package private) int |
Solo.getNumberOfMatches(java.lang.String regex,
java.lang.String textViewUID,
java.util.Set<java.lang.String> matchedViewUIDList)
Checks if a View matches a certain string and returns the amount of total matches.
|
int |
RobotiumUtils.getNumberOfMatches(java.lang.String regex,
java.lang.String textViewUID,
java.util.Set<java.lang.String> matchedViewUIDList)
Checks if a View matches a certain string and returns the amount of total matches.
|
java.lang.String |
Solo.getObjectClassName(java.lang.String viewID)
Get the class name of an object according to String UID reference.
|
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.awt.Dimension |
Solo.getScreenSize()
Returns a Dimension representing the emulator/device's screen size.
|
int |
Timeout.getSmallTimeout()
Gets the default timeout length of the get, is, set, assert, enter and click methods.
|
(package private) int |
Solo.getSmallTimeout()
Gets the default timeout length of the get, is, set, assert, enter and click methods.
|
java.lang.String |
Solo.getString(int resourceId)
Returns a localized String from localized String resources.
|
java.lang.String |
Solo.getString(java.lang.String resourceId)
Returns a localized String from localized String resources in the app or android packages.
|
java.lang.String |
Solo.getTagForView(java.lang.String uidView)
Returns a Tag for a View.
|
java.lang.String |
Solo.getText(int index)
Returns a String UID for the Text at the given index.
|
java.lang.String |
Solo.getText(java.lang.String text)
Returns a String UID for the Text item with the given text.
|
java.lang.String |
Solo.getText(java.lang.String text,
boolean onlyVisible)
Returns a String UID for the Text item with the given text.
|
java.lang.String |
Solo.getTextViewValue(java.lang.String uid)
Return the TextView's text value.
|
java.lang.String |
Solo.getTopParent(java.lang.String uidView)
Returns the absolute top parent View for a given View.
|
java.lang.String |
Solo.getView(int id)
Returns a View with the given id.
|
java.lang.String |
Solo.getView(int id,
int index)
Returns the nth View with the given id.
|
java.lang.String |
Solo.getView(java.lang.String classname,
int index)
Returns a View of a given class and index.
|
java.lang.String |
Solo.getViewByName(java.lang.String idname)
Returns a View matching the specified "resource name".
|
java.lang.String |
Solo.getViewByName(java.lang.String idname,
int index)
Returns a View matching the specified "resource name" and index.
|
java.lang.String |
Solo.getViewByTag(java.lang.String tagUID)
Returns a View matching the specified Tag.
|
java.lang.String |
Solo.getViewByTag(java.lang.String tagUID,
int index)
Returns a View matching the specified Tag and index.
|
java.lang.String |
Solo.getViewClassName(java.lang.String viewID)
Get the class name of View according to String UID reference.
|
java.awt.Rectangle |
Solo.getViewLocation(java.lang.String uidView)
Return the location of View on screen.
|
java.util.ArrayList<java.lang.String> |
Solo.getViews()
Returns an ArrayList of String UIDs for all the View objects located in the focused Activity or Dialog.
|
java.util.ArrayList<java.lang.String> |
Solo.getViews(java.lang.String uidParent)
Returns an ArrayList of String UIDs for all the View objects contained in the parent View.
|
java.lang.String |
Solo.getWebElement(By by,
int index)
Returns an UID for the WebElement displayed in the active WebView matching the specified By object and index-- Robotium 4.1 required.
|
java.util.ArrayList<java.lang.String> |
Solo.getWebElements()
Returns an ArrayList of all the WebElements displayed in the active WebView.
|
java.util.ArrayList<java.lang.String> |
Solo.getWebElements(By by)
Returns an ArrayList of all the WebElements displayed in the active WebView matching the specified By object.
matching the specified By object -- Robotium 5.2.1 required. |
java.lang.String |
Solo.getWebUrl()
Returns the current web page URL -- Robotium 4.1 required.
|
boolean |
Solo.goBack()
Simulates pressing the hardware back key.
|
boolean |
Solo.goBackToActivity(java.lang.String activityname)
Returns to the given Activity.
|
boolean |
Solo.hideSoftKeyboard()
Hides the soft keyboard.
|
void |
SoloWorker.initialize()
Called to initialize RemoteControl communications with a remote client and get it to the Ready state.
|
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.
|
java.util.Properties |
SoloRemoteControl.performRemoteFileCommand(java.lang.String filepath,
int secsWaitReady,
int secsWaitRunning,
int secsWaitResult)
Default implementation performs the following:
|
void |
SoloRemoteControl.performRemoteMessageCommand(java.lang.String message,
int secsWaitReady,
int secsWaitRunning)
Default implementation performs the following:
|
java.util.Properties |
SoloRemoteControl.performRemotePropsCommand(java.util.Properties props,
int secsWaitReady,
int secsWaitRunning,
int secsWaitResult)
Default implementation performs the following:
|
void |
SoloRemoteControl.performRemoteShutdown(int secsWaitReady,
int secsWaitRunning,
int secsWaitShutdown)
Default implementation performs the following:
|
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.pressMenuItem(int index)
Presses a MenuItem with a given index.
|
boolean |
Solo.pressMenuItem(int index,
int itemsPerRow)
Presses a MenuItem with a given index.
|
boolean |
Solo.pressSoftKeyboardNextButton()
Press the soft keyboard Next button.
|
boolean |
Solo.pressSoftKeyboardSearchButton()
Press the soft keyboard Search button.
|
boolean |
Solo.pressSpinnerItem(int spinnerIndex,
int itemIndex)
Presses on a Spinner (drop-down menu) item.
|
(package private) java.util.List<java.lang.String> |
Solo.removeInvisibleViews(java.util.List<java.lang.String> viewUIDList)
Removes invisible Views.
|
java.util.List |
RobotiumUtils.removeInvisibleViews(java.util.List<java.lang.String> viewUIDList)
Removes invisible Views.
|
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.scrollToSide(int side)
Scrolls horizontally.
|
boolean |
Solo.scrollToSide(int side,
float scrollPosition)
Scrolls horizontally.
|
boolean |
Solo.scrollToSide(int side,
float scrollPosition,
int stepCount)
Scrolls horizontally.
|
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.sendKey(int key)
|
boolean |
Solo.setActivityOrientation(int orientation)
Set the Orientation (
Solo.LANDSCAPE /Solo.PORTRAIT ) for the current Activity. |
boolean |
Solo.setDatePicker(int index,
int year,
int monthOfYear,
int dayOfMonth)
Sets the date in a given DatePicker.
|
boolean |
Solo.setDatePicker(java.lang.String uidDatePicker,
int year,
int monthOfYear,
int dayOfMonth)
Sets the date in a given DatePicker.
|
boolean |
Timeout.setLargeTimeout(int milliseconds)
Sets the default timeout length of the waitFor methods.
|
(package private) boolean |
Solo.setLargeTimeout(int milliseconds)
Sets the default timeout length of the waitFor methods.
|
boolean |
Solo.setMobileData(boolean turnedOn)
Sets if mobile data should be turned on or off.
|
boolean |
Solo.setNavigationDrawer(int status)
Sets the status of the NavigationDrawer.
|
boolean |
Solo.setProgressBar(int index,
int progress)
Sets the status in a given ProgressBar.
|
boolean |
Solo.setProgressBar(java.lang.String uidProgressBar,
int progress)
Sets the status in a given ProgressBar.
|
boolean |
Solo.setSlidingDrawer(int index,
int status)
Sets the status in a given SlidingDrawer.
|
boolean |
Solo.setSlidingDrawer(java.lang.String uidSlidingDrawer,
int status)
Sets the status in a given SlidingDrawer.
|
boolean |
Timeout.setSmallTimeout(int milliseconds)
Sets the default timeout length of the get, is, set, assert, enter and click methods.
|
(package private) boolean |
Solo.setSmallTimeout(int milliseconds)
Sets the default timeout length of the get, is, set, assert, enter and click methods.
|
boolean |
Solo.setTimePicker(int index,
int hour,
int minute)
Sets the time in a given TimePicker.
|
boolean |
Solo.setTimePicker(java.lang.String uidTimePicker,
int hour,
int minute)
Sets the time in a given TimePicker.
|
boolean |
Solo.setWiFiData(boolean turnedOn)
Sets if wifi data should be turned on or off.
|
boolean |
Solo.sleep(int millis)
Make Robotium sleep for a specified number of milliseconds.
|
(package private) void |
Solo.sortViewsByLocationOnScreen(java.util.List<java.lang.String> viewUIDList)
Orders Views by their location on-screen.
|
void |
RobotiumUtils.sortViewsByLocationOnScreen(java.util.List<java.lang.String> viewUIDList)
Orders Views by their location on-screen.
|
(package private) void |
Solo.sortViewsByLocationOnScreen(java.util.List<java.lang.String> viewUIDList,
boolean yAxisFirst)
Orders Views by their location on-screen.
|
void |
RobotiumUtils.sortViewsByLocationOnScreen(java.util.List<java.lang.String> viewUIDList,
boolean yAxisFirst)
Orders Views by their location on-screen.
|
boolean |
Solo.startMainLauncher()
Start the AUT app by launching its main launcher Activity.
|
boolean |
Solo.startScreenshotSequence(java.lang.String filename)
Takes a Robotium screenshot sequence and saves the images with the specified name prefix in
"/sdcard/Robotium-Screenshots/".
|
boolean |
Solo.startScreenshotSequence(java.lang.String filename,
int quality,
int frameDelay,
int maxFrames)
Takes a Robotium screenshot sequence and saves the images with the specified name prefix in
"/sdcard/Robotium-Screenshots/".
|
boolean |
Solo.stopScreenshotSequence()
Stop the current screenshot sequence started with startScreenshotSequence.
|
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.
|
java.awt.image.BufferedImage |
Solo.takeScreenshot()
Take a screenshot and retrieve the stored JPG image.
|
java.awt.image.BufferedImage |
Solo.takeScreenshot(java.lang.String filename)
Take a screenshot and retrieve the stored JPG image.
|
java.awt.image.BufferedImage |
Solo.takeScreenshot(java.lang.String filename,
int quality)
Take a screenshot and retrieve the stored JPG image.
|
boolean |
Solo.typeText(int index,
java.lang.String text)
Enter text in an EditText with a given index.
|
boolean |
Solo.typeText(java.lang.String uidEditText,
java.lang.String text)
Enter text into a given EditText.
|
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.
|
void |
SoloRemoteControl.waitForRemoteConnected(int sTimeout)
Wait for the remote client to get connected.
|
void |
SoloRemoteControl.waitForRemoteReady(int sTimeout)
Wait for the remote client to signal Ready for a new command.
|
java.util.Properties |
SoloRemoteControl.waitForRemoteResult(int sTimeout)
Wait for the remote client to signal results are available and return those results.
|
void |
SoloRemoteControl.waitForRemoteRunning(int sTimeout)
Wait for the remote client to signal Running a new command.
|
void |
SoloRemoteControl.waitForRemoteShutdown(int sTimeout)
Wait for the remote client to signal its shutdown.
|
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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DDriverCommand.doClipboardCommand()
Process clipboard related keywords:
AssignClipboardVariable ClearClipboard SaveClipboardToFile SetClipboard VerifyClipboardToFile |
protected void |
DDriverCommand.doCommandWithoutPrameter(int timeout)
This method is used to execute a keyword without parameter:
HideSoftKeyboard ShowSoftKeyboard |
protected void |
DDriverCommand.doGUIBranching()
OnGuiExistsGotoBlockID and OnGuiNotExistGotoBlockID commands setup.
|
protected void |
DDriverCommand.doTakeScreenShotCommand()
This method is used to check the parameter of keyword TakeScreenShot.
Filename is the required parameter. Rotatable is the optional parameter. |
protected void |
DDriverCommand.doWaitForGui()
WaitForGui and WaitForGuiGone commands setup.
|
protected void |
CFComponentFunctions.processCommand()
All action props should have already been completed during
CFComponentFunctions.setTestRecordData(org.safs.TestRecordHelper)
and DTestStepProcessor.interpretFields() |
protected void |
DDriverCommand.processProperties(int param_timeout)
Sets Property PARAM_TIMEOUT and then processes the completed remote control action properties.
|
protected void |
CFComponentFunctions.processProperties(int param_timeout)
process the completed remote control action properties.
|
Modifier and Type | Method and Description |
---|---|
static android.app.Application |
DGuiObjectRecognition.getForegroundApplication() |
java.lang.Object |
DGuiObjectVector.getMatchingChild(int secsTimeout) |
java.lang.Object |
DGuiObjectVector.getMatchingParentObject(int secsTimeout) |
static java.lang.String |
DGuiObjectRecognition.getObjectCaption(java.lang.Object obj)
getTitle if Object is an Activity.
|
static java.lang.Object[] |
DGuiObjectRecognition.getTopLevelWindows()
Returns the one topmost parent View of the View that is currently focused.
|
boolean |
DGuiObjectDefinition.isMatchingObject(java.lang.Object obj,
DGuiObjectIndices indices) |
java.lang.Object |
DGuiObjectVector.searchChildren(java.lang.Object aparent,
DGuiObjectDefinition testdef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
SAFSDriverCommands.assignClipboardVariable()
Same as getClipboard.
|
void |
SAFSDriverCommands.clearClipboard()
ClearClipboard
Clear the device clipboard.
|
void |
SAFSEngineCommands.clearHighlightedDialog()
|
void |
SAFSEngineCommands.clearReferenceCache()
|
java.lang.String |
SAFSEngineCommands.getAccessibleName(java.lang.String uID)
|
java.lang.String |
SAFSEngineCommands.getCaption(java.lang.String uID)
|
int |
SAFSEngineCommands.getChildCount(java.lang.String uID)
|
java.lang.String[] |
SAFSEngineCommands.getChildren(java.lang.String uID)
|
int |
SAFSEngineCommands.getClassIndex(java.lang.String uID)
|
java.lang.String |
SAFSEngineCommands.getClassname(java.lang.String uID)
|
java.lang.String |
SAFSDriverCommands.getClipboard()
AssignClipboardVariable
Retrieve text contents of the device clipboard.
|
java.lang.String |
SAFSEngineCommands.getCurrentWindow()
|
java.lang.String |
SAFSEngineCommands.getId(java.lang.String uID)
|
java.lang.String |
SAFSEngineCommands.getMatchingChildObjects(java.lang.String parentUID,
java.lang.String recognition)
|
java.lang.String |
SAFSEngineCommands.getMatchingParentObject(java.lang.String recognition)
|
java.lang.String |
SAFSEngineCommands.getName(java.lang.String uID)
|
java.lang.String |
SAFSEngineCommands.getNonAccessibleName(java.lang.String uID)
|
java.lang.String |
SAFSEngineCommands.getProperty(java.lang.String uID,
java.lang.String propertyName)
|
java.lang.String[] |
SAFSEngineCommands.getPropertyNames(java.lang.String uID)
|
java.awt.image.BufferedImage |
SAFSDriverCommands.getScreenShot(boolean rotatable)
|
java.lang.String[] |
SAFSEngineCommands.getSuperclassNames(java.lang.String uID)
|
java.lang.String |
SAFSEngineCommands.getText(java.lang.String uID)
|
int |
SAFSEngineCommands.getTopLevelCount()
|
java.lang.String[] |
SAFSEngineCommands.getTopLevelWindows()
|
boolean |
SAFSDriverCommands.hideSoftKeyboard()
|
void |
SAFSEngineCommands.highlightMatchingChildObjectByKey(java.lang.String parentUID,
java.lang.String childUID)
|
boolean |
SAFSEngineCommands.isEnabled(java.lang.String uID)
|
boolean |
SAFSEngineCommands.isShowing(java.lang.String uID)
|
boolean |
SAFSEngineCommands.isTopLevelPopupContainer(java.lang.String uID)
|
boolean |
SAFSEngineCommands.isValid(java.lang.String uID)
|
void |
SAFSEngineCommands.setActiveWindow(java.lang.String uID)
|
void |
SAFSDriverCommands.setClipboard(java.lang.String text)
|
boolean |
SAFSDriverCommands.showSoftKeyboard()
|
java.awt.image.BufferedImage |
SAFSDriverCommands.takeScreenShot(boolean rotatable)
Same as getScreenShot.
|
boolean |
SAFSDriverCommands.waitForGUI(java.lang.String winrec,
java.lang.String comprec,
int stimeout)
|
boolean |
SAFSDriverCommands.waitForGUIGone(java.lang.String winrec,
java.lang.String comprec,
int stimeout)
|
Copyright © SAS Institute. All Rights Reserved.