isDifferent property

Class: StepInfoPlainPlatform: NightwatchLanguage: JavaScript SDK:

The value of this property is true if the checkpoint does not match the baseline image.

Syntax

value = stepinfo.isDifferent;

Type:boolean

Returns true if a corresponding baseline image exists and the checkpoint image does not match that baseline image, Returns false if the checkpoint image matched the baseline image or if its a new checkpoint image (there is no baseline image yet).