getIsDifferent method

Class: StepInfoPlatform: Selenium 4Language: JavaScript SDK:

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


let value = stepinfo.getIsDifferent();


This method does not take any parameters.

Return value

Type: boolean
Returns true if the checkpoint image did not match the corresponding baseline image, or if this step was new (there was no baseline image), or if there was a baseline step with no corresponding checkpoint image. Returns false if the checkpoint image matched the baseline image.