The information below concerns legacy mobile tests that work with mobile devices connected to the local computer. For new mobile tests, we recommend using the newer cloud-compatible approach. |
The AndroidDevice object contains the following methods:
Method List
Name | Description |
---|---|
Call
|
Simulates an outgoing call. |
ChangeLocale
|
Changes the locale of the device. |
Child
|
Returns a child object by its index. |
DoubleTouch
|
Simulates a double touch at the specified point of the screen. |
Drag
|
Simulates dragging on the device's screen. |
Find
|
Searches for a child object that has the specified property values. |
FindAll
|
Returns an array of child objects that have the specified property values. |
FindAllChildren
|
Returns an array of child objects that have the specified property values. |
FindChild
|
Searches for a child object that has the specified property values. |
FindEx
|
Searches for a child object that has the specified property values during the specified timeout period. |
FindId
|
Returns a child object by its identifier. |
Keys
|
Simulates user input. |
Move
|
Simulates moving a fingertip to the specified point of the device's screen. |
PressBack
|
Simulates pressing the Back button. |
PressButton
|
Simulates pressing a physical button. |
PressHome
|
Simulates pressing the Home button. |
Process
|
Returns the process specified by its name. |
Reboot
|
Simulates rebooting of the device. |
Refresh
|
Refreshes the child object list. |
ShellExecute
|
Runs a shell command on the device. |
SMS
|
Sends an SMS to the specified number. |
Swipe
|
Simulates a swipe action from one point of the screen to another. |
Touch
|
Simulates a single touch at the specified point of the screen. |
TouchAndHold
|
Simulates touching the screen for the specified period of time. |
TouchPress
|
Simulates pressing at the specified point of the screen. |
TouchRelease
|
Simulates releasing the screen at the specified point. |
Validate
|
Obsolete. Generates the OnValidate event for the object. |
WaitChild
|
Waits until the specified child object becomes available during the timeout period. |
WaitProcess
|
Delays the test execution until the specified process becomes available or until the specified timeout period elapses. |
WaitProperty
|
Waits until the specified object property achieves the specified value during the timeout period. |
See Also
AndroidDevice Object
AndroidDevice Object Properties
Testing Android Applications (Legacy)