iOSDevice Object Methods

Applies to TestComplete 15.62, last modified on March 14, 2024
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 iOSDevice object contains the following methods:

Method List

Name Description
Child Returns a child object by its index.
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.
PressButton Simulates pressing a physical button.
Process Returns the process specified by its name.
Reboot Simulates rebooting of the device.
Refresh Refreshes the child object list.
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

Testing iOS Applications (Legacy)
iOSDevice Object Properties

Highlight search results