SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
29.73k stars 8.02k forks source link

[🚀 Feature]: image-comparison #14165

Closed huemach78 closed 1 week ago

huemach78 commented 1 week ago

Feature and motivation

I'm looking to compare two images, identify any differences between them, and visually highlight those differences with red rectangles. Unfortunately, the open-source library I was considering seems no longer actively maintained.

I'm looking for the built-in feature in Selenium to support this For Example: https://github.com/romankh3/image-comparison OR https://github.com/appium/appium/blob/master/packages/images-plugin/docs/image-comparison.md

Usage example

Compare the expected result and actual result and visually highlight those differences with red rectangles.

github-actions[bot] commented 1 week ago

@huemach78, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

MJB222398 commented 1 week ago

This wouldn't make sense for Selenium to do. Selenium drives browsers or android devices. This would be far outside of its remit. I do perform some image comparison in my solution. For that I use https://github.com/Codeuctivity/ImageSharp.Compare

titusfortner commented 1 week ago

Yeah, this is outside our scope of browser automation. Much better to find someone with this specific expertise to create/improve existing solutions. Looks like wdio is using https://github.com/rsmbl/Resemble.js (which is also in low maintenance mode).