Image Comparison Using Selenium Shutterbug

Image Comparison Using Selenium Shutterbug

In this blog, we are going to learn, how we can compare two images using Third-party utility Selenium Shutterbug.

I would highly recommend referring to this blog before moving further.

As we discussed in another blog, on steps to capture the screenshot of the web-page will be using the same concept and screenshot to compare two complete images.

Below is the code snippet where I have tried to compare google page (expected image) which I have taken in the attached blog with the google logo while running the current program (actual image).

After executing the above code result will looks something like:



My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post
January 29, 2019 at 10:28 AM

Hi Ankur, Thanks for adding this informative ideas. Every day morning I am getting mails with links which help me to learn new things every day.
Thanks a lot.
Please if possible send me the links from which I can start Selenium with Python. I did not get any good blogs.