To learn more about using LeanFT for Selenium, see LeanFT for Selenium.

Utils

LFTForSelenium. Utils

new Utils()

LeanFT for Selenium utilities.

Methods

getSnapshot(elem)

Returns a snapshot (image) of the selenium element as a Base64 string.
Parameters:
Name Type Description
elem * The element to retrieve a snapshot for.
Returns:
A snapshot of the element as a Base64 image.

highlight(elem)

Highlights the selenium element in the browser.
Parameters:
Name Type Description
elem * The element to highlight.
Returns:
A promise that is resolved if the highlight succeeds, and rejected otherwise.