Global JavaScript Methods and Utility Methods

As part of the toolkit support set, you design JavaScript functions that UFT calls. Your JavaScript functions can call global methods and utility methods that UFT provides. The global methods are provided as JavaScript functions in the common.js file. The utility methods are exposed by the _util object.

The _util utility object exposes the following methods that you can call in your JavaScript functions:

The most commonly used functions from common.js are:

The common.js file also contains variables with preset values that you can use as constants in your code.

The common.js file is located in the <Extensibility Accelerator installation folder>\bin\PackagesToLoad folder and the <UFT installation folder>\dat\Extensibility\Web\Toolkits folder.

For more information on these methods and constants, see the API Reference.