Mobile Object

Applies to TestComplete 14.0, last modified on January 23, 2019

Description

The Mobile object provides access to a collection of mobile devices connected to your machine. Its methods allow you to specify the current device for the test and get scripting access to it.

Members

Example

The following code example demonstrates how you can set the current device:

JavaScript, JScript

Mobile.SetCurrent("MyDevice", 0);

Python

Mobile.SetCurrent("MyDevice", 0)

VBScript

Call Mobile.SetCurrent("MyDevice", 0)

DelphiScript

Mobile.SetCurrent('MyDevice', 0);

C++Script, C#Script

Mobile["SetCurrent"]("MyDevice", 0);

See Also

Testing Android Applications
Writing Scripts - Overview

Highlight search results