I would like to be able to use the equalsWithDiff function when using a full-page screenshot.
Currently I git this error:
"Images dimensions mismatch: image1 - 1548x3284; image2 - 1548x3291"
The difference is 7 pixels in height. I am using Chrome.
My code:
BufferedImage expectedImage = null;
try {
expectedImage = ImageIO.read(new File("C:\\2020_06_12_13_25_31_832.png"));
} catch (IOException e) {
e.printStackTrace();
}
Shutterbug.shootPage(driver,ScrollStrategy.WHOLE_PAGE).equalsWithDiff(expectedImage,"screenshots2");