Utils Class
LFTForSelenium.Utils
Contains all OpenText Functional Testing for Developers (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.
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.