Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: partial page comparison #160

Open
atsepkov-zaius opened this issue Oct 4, 2019 · 1 comment
Open

Feature request: partial page comparison #160

atsepkov-zaius opened this issue Oct 4, 2019 · 1 comment

Comments

@atsepkov-zaius
Copy link

Sometimes I know that the content of the page will differ, but the layout should still be the same. In cases like that I would like to be able to specify which area of the page to compare and which to ignore.

One way to achieve this is to allow the user to specify a "mask" image with black pixels corresponding to regions to compare and white corresponding to regions to ignore.

Another alternative is to just let user specify coordinates of regions that matter (or regions to ignore) directly.

How feasible would this be? Thanks

@NimaSoroush
Copy link
Owner

Hi @atsepkov-zaius , how about using elementHandle.screenshot instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants