Synchronous functions

The below synchronous functions can be used in every field in TruClient that can evaluate JavaScript, such as in step arguments, objects, and descriptor fields.

Note:

  • While synchronous functions can be used in objects and descriptor fields, we do not recommend it because it can cause unexpected results.

  • Support for using synchronous APIs in JavaScript code will be deprecated in TruClient and we recommend using asynchronous APIs instead. For details, see Asynchronous functions.

  • For TruClient - Native Mobile scripts (synchronous APIs are not supported), we recommend using Generic API Action steps instead. For details, see Replace synchronous APIs with Generic API Action steps.

General notes on using TruClient functions

  • Use escape backslashes in path arguments. For example, c:\\temp\\myFile.ps1.

  • The following arguments can be used with any method:

    • object. The step's object as defined in the application.

    • AUT.window. Points to the global window object within the active window or tab of the application.

    • AUT.document. The global document object within the active window or tab of the application.

    The AUT API provides a common mechanism for handing the AUT window and AUT document for all TruClient protocols. For details, see Use JavaScript in the AUT window.

Back to top

Vuser functions

Back to top

Browser functions

Back to top

VTS functions

Back to top

Environment functions

Back to top

 

See also: