Utils Class

LFTForSelenium.Utils

Contains all LeanFT for Selenium utilities.

Syntax

new Utils()

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