selenium-shutterbug: "Images dimensions mismatch" error in full page screenshot comparison
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");
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (12 by maintainers)
Hi @jpratt2 , at the moment its pixel by pixel comparison only. I’ll have a look at possible reasons why the size differs.