getIsDifferent method

Class: StepInfoPlatform: PlaywrightLanguage: JavaScript SDK:

The value returned by this method is true if the checkpoint does not match the baseline image.

Syntax

let value = stepinfo.getIsDifferent();
value = stepinfo.getIsDifferent;

Note that this feature is available as both a method and a property.

Parameters

This method does not take any parameters.

Return value

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).