To learn more about using JavaScript in LeanFT, see Setting up and working with the JavaScript SDK.
For JavaScript code samples, see Code Samples - JavaScript.

Desktop

StdWin. Desktop

Desktop

Constructor

new Desktop()

A class to create Window or Dialog Test Object. Note: To create a Window or Dialog Test Object, use Desktop.$

Methods

$(description) → {*}

Creates a Window or Dialog Test Object based on the description. This operation does not cause LeanFT to search for the object in the AUT. LeanFT interacts with the application only when a step runs that performs an operation on the AUT object.
Parameters:
Name Type Description
description Object The description of the test object (Window or Dialog).
Returns:
the new Window or Dialog test object with the provided description. An error will be thrown if the description is not a window or dialog.
Type
*