问题
I am new in automation and want to automate a site whose back-end in HTML5 and containing canvas element. I want to compare canvas images with my stored image. For image comparison I need to use robot framework. I had tried with "robotframework-imagehorizonlibrary" library but still testcases were failed. Can any one please help me.
Thanks.
回答1:
I would suggest the RobotAppEyes Library
, which is basically an extended version of Selenium2
library, and it actually has a keyword named Compare Images
.
Use it as the following:
Compare Image <path, imagename=None, ignore_mismatch=False, includeEyesLog=False, httpDebugLog=False>
see details here: http://navinet.github.io/Robot-AppEyes/RobotAppEyes-KeywordDocumentation.html
来源:https://stackoverflow.com/questions/40020984/how-to-compare-two-images-in-robot-framework