Desktop Property (Android Testing)

Applies to TestComplete 12.60, last modified on September 17, 2018

Description

Returns an AndroidDesktop object that provides information about the Android device's desktop.

Declaration

AndroidDeviceObj.Desktop

Read-Only Property A AndroidDesktop object
AndroidDeviceObj An expression, variable or parameter that specifies a reference to an AndroidDevice object

Applies To

The property is applied to the following object:

Property Value

A AndroidDesktop object that provides access to the Android device's desktop.

Example

The code below gets the AndroidDesktop object and posts it to the test log:

JavaScript, JScript

function GetDesk()
{
  var deskObj = Mobile.Device("MyDevice").Desktop;
  Log.Picture(deskObj.Picture());
}

Python

def GetDesk():
   deskObj = Mobile.Device("MyDevice").Desktop
   Log.Picture(deskObj.Picture())

VBScript

Sub GetDesk
  Set deskObj = Mobile.Device("MyDevice").Desktop
  Call Log.Picture(deskObj.Picture)
End Sub

DelphiScript

procedure GetDesk();
var deskObj;
begin
   deskObj := Mobile.Device('MyDevice').Desktop;
   Log.Picture(deskObj.Picture());
end;

C++Script, C#Script

function GetDesk()
{
  var deskObj = Mobile["Device"]("MyDevice")["Desktop"];
  Log["Picture"](deskObj["Picture"]());
}

See Also

AndroidDesktop Object
AndroidDevice Object
Testing Android Applications

Highlight search results