robot framework测试驱动无法定位页面元素

来源:互联网 发布:今天的网络怎么了 编辑:程序博客网 时间:2024/06/05 04:53


robot framework错误提示:

[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure:
NoSuchWindowException: Message: u'Unable to get browser'

环境信息:

IE版本是IE 11,windows 7 64位

解决方案(修改注册表):

1.需要设置注册表项(运行regedit)。

2.对于32位操作系统:进入HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet Explorer
MainFeatureControlFEATURE_BFCACHE.
对于64位操作系统:进入HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftInternet Explorer
MainFeatureControlFEATURE_BFCACHE

3.(没有FEATURE_BFCACHE就自己创建---新建一个项,取名为FEATURE_BFCACHE),在新建的FEATURE_BFCACHE点击右键-新建DWORD值-名称为iexplore.exe,数据为0.

原文引述:

http://stackoverflow.com/questions/12694001/selenium-server-error-unable-to-get-browser/12694003

0 1