问题1:
command: pybot.bat –argumentfile c:/users/lenovo/appdata/local/temp/RIDEeoqulh.d/argfile.txt –listener D:/Python27/lib/site-packages/robotide/contrib/testrunner/TestRunnerAgent.py:16115:False C:/Users/lenovo/Desktop/test/test
解决方案:把C:/python27/scripts加入环境变量path中
问题2:
WebDriverException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.
解决方案:设置IE浏览器Internet选项->选择安全->把Internet,本地Intranet,可信站点,受限站点下的启用模式统一都去掉或都选上
问题3:
WebDriverException: Message: ‘IEDriver executable needs to be available in the path.
解决方案:下载IEDriver或chromeDriver,放在D:/Python27/Scripts,前提是你的python安装在此D盘
问题4:
[WARN]Keyword ‘Capture Page Screenshot’ could not be run on failure: AttributeError: ‘NoneType’ object has no attribute ‘encode’
解决方案:找到Selenium2Library的utils目录,修改其中的browsercache.py文件,将def close(self):方法中的语句“browser.quit()”修改为“browser.close()”。即可解决此问题。
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/197858.html