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. |
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 (Legacy)