Share this page

# Utils Class

LFTForSelenium.Utils

Contains all UFT Developer for 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... UFT Developer for Selenium SDK (JavaScript) Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: