replaceWindow method

Class: EyesPlatform: Selenium 3Language: JavaScript SDK:

Replace the captured image and associated metadata for a checkpoint with an image provided as a parameter.

Syntax


let  value = eyes.replaceWindow(stepIndex, screenshot, tag, title, userInputs);

Parameters

stepIndex
Type:number
The zero-based index of the step in which to replace the actual image.
screenshot
Type:Buffer
The PNG bytes of the updated screenshot.
tag
Type:string
The updated tag for the checkpoint.
title
Type:string
The updated <title> tag for the checkpoint.
userInputs
Type:Trigger[]
The updated userInputs for the checkpoint.

Return value

Type: Promise
A promise which resolves when replacing is done, or rejects if an error occurs.