Is it possible to compare two images using Robot Framework? I tried one solution using OpenCV that compares two images, but it's getting difficult to write something specific to Robot Framework.
Asked
Active
Viewed 496 times
0
-
You are on the right track when you started with OpenCV. If you are running RF with Python, you should write a new keyword with Python. – Pekka Dec 21 '21 at 08:12
-
@Pekka Thanks, I think I will do my stuff that way... – Sujit Neb Dec 22 '21 at 09:06
1 Answers
3
Robot framework itself doesn't have any such feature. However, it's possible to write a custom keyword to do it. I worked on a team a few years ago that built some keywords based on the ImageMagick library. You can either have the keywords import the imagemagick library itself, or use the imagemagick cli.
For more information see “Diff” an image using ImageMagick

Bryan Oakley
- 370,779
- 53
- 539
- 685