Share this page

# Utils Class

LFTForSelenium.Utils

Contains all OpenText Functional Testing for Developers (Selenium) utilities.

Syntax

`new Utils()`

In this topic:

## getSnapshot

Returns a snapshot (image) of the selenium element as a Base64 string.

Syntax

    getSnapshot(elem)

Parameters

Name | Type | Description
--- | --- | ---
`elem` | * | The element to retrieve a snapshot for.

Returns

A snapshot of the element as a Base64 image.

Back to top

## highlight

Highlights the selenium element in the browser.

Syntax

    highlight(elem)

Parameters

Name | Type | Description
--- | --- | ---
`elem` | * | The element to highlight.

Returns

A promise that is resolved if the highlight succeeds, and rejected otherwise.

Back to top

Tips to improve your search results... OpenText™ Functional Testing for Developers (Selenium) JavaScript SDK All versions OpenText™ Functional Testing for Developers (Selenium) SDK 25.2 All View Local Help Center View Online Help Center Version: