Eyes method

Class: EyesPlatform: NightwatchLanguage: JavaScript SDK:

This is the constructor for the Eyes class.

This is the main class used for executing checkpoints using Eyes.

Syntax

let eyes = new Eyes(runner);

let eyes = new Eyes();

Parameters

runner
Type:EyesRunner [Optional ]
If this parameter is provided, it must be an instance of either the ClassicRunner or VisualGridRunner classes. If a VisualGridRunner is passed then the image will be rendered using the Ultrafast Grid. If this parameter is not provided, then DOM rendering is done using the local browser defined by the driver parameter passed to the Eyes.open method.

Return value

Type: Eyes
Use the object returned to call the various methods provided by the Eyes class.