Skip to content

"Images dimensions mismatch" error in full page screenshot comparison #70

@jpratt2

Description

@jpratt2

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");

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions