Share this page
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
In this topic:$(description) → {*}
Creates a Window or Dialog Test Object based on the description.
This operation does not cause UFT Developer to search for the object in the AUT. UFT Developer 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 is thrown if the description is not a window or dialog.
-
Type
- *
launchAut(fileName, argsopt, workingDirectoryopt) → {Promise.<Object>}
Launches an AUT using the file name. To used this method, you must create an application allowlist file. For details, see Add SDK code to your tests in the UFT Developer Help Center.
Parameters:
Name | Type | Attributes | Description |
---|
fileName | string | | The name of the AUT file to launch. Specify only the name, or the full or relative path to the file. |
args | Array.<string> |
<optional>
| A list of arguments. |
workingDirectory | string |
<optional>
| A working directory. |
Returns:
a promise that is fulfilled with the launched AUT
-
Type
- Promise.<Object>
Tips to improve your search results...
UFT Developer JavaScript SDK ReferenceVersion: 2021-2023UFT Developer SDK ReferenceAllView Local Help CenterView Online Help CenterbackGo back in browser historyforwardGo forward in browser historyRemove search highlightsnext topicGo to next topicprevious topicGo to previous topicPrint the current topicVersion: