How to compare two images in Robot Framework

筅森魡賤 提交于 2019-12-21 23:31:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!