LFT Namespace

The LFT namespace represents the main UFT Developer module.

Start your code with a var <varible name> = require ("leanFT") statement to load the main LeanFT module. In our code samples, we use the variable name LFT. Therefore, we refer to our main namespace as LFT.

Within this namespace, you can use the following functions, namespaces, classes, enumerations, and types:


Function Description

Call this function after each test method.


Call this function before each test method.


Performs an SDK cleanup when connection ends.


Initializes the SDK with the specified configuration.

Back to top


Class Description
Provides the SDK for executing API tests.
Provides the SDK for image-based object identification.
Provides the SDK for testing Java objects.
Provides the SDK for testing objects in mobile applications.
Provides the SDK for testing Oracle objects.
Provides the SDK for testing SAPGUI objects.
Provides the SDK for testing SAPUI5 objects.
Provides the SDK for testing standard Windows objects.
Provides the SDK for testing Terminal Emulators objects.
Provides the SDK for testing Web objects.
Provides the SDK for testing .NET Windows Forms objects.
Provides the SDK for testing WPF objects.

Back to top


Namespace Description
A top-level Window or Dialog test object.
Provides image utilities, such as OCR, image comparisons, and image find operations.
Keyboard Enables low-level keyboard operations.
Mouse Enables low-level mouse operations.
Reporter Provides the means to report custom events, additional data, and configuration for the report.
SDK The LeanFT SDK base class.

Back to top


Enum Description
FunctionKeys Represents the function keys.
KeyModifier Represents additional pressed keys.
Keys Represents keyboard keys.
ScrollOrientation Represents the orientation of the scroll bar.
WindowExtendedStyles Represents extended window style properties.
WindowState Represents the window's current state (maximized/minimized).
WindowStyles Represents window style properties.

Back to top


Type Description
CheckedState The state of a check box.
DateFormatType Indicates whether a date entity refers to a single date or to one or more date ranges.
GridSelectionMode The selections that are possible in a grid.
Horizontal The horizontal location of the related test object relative to the object to identify.
Location The location (relative to an object in the application) at which to perform the operation.
MouseButton The mouse button to use.
Point The coordinates of a point on the screen.
Position Indicates the corners or center of an object.
Proximity The distance or hierarchical location of the related test object relative to the object to identify.
ScrollType The type of scrolling operation.
SwipeDirection The direction of the swipe.
Vertical The vertical location of the related test object relative to the object to identify.
VerticalScrollPosition The position of the Vertical scrollbar.
Aut An abstraction of an AUT process launched by the user.

Represents a native object in an application. Returned by any test object's nativeObject method, enabling you to access the object's native properties and methods.

RectLocation Describes the location and size of a rectangular area on the screen.

Back to top