解决selenium2在IE11上出错的问题,如Unable to get browser
2016-05-31 14:48
302 查看
官方解决方案:
https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver#required-configurationRequired Configuration
The IEDriverServer exectuable must be downloaded and placed in your PATH.On IE 7 or higher on Windows Vista or Windows 7, you must set the Protected Mode settings for each zone to be the same value. The value can be on or off, as long as it is the same for every zone. To set the Protected Mode settings, choose "Internet Options..." from the Tools menu, and click on the Security tab. For each zone, there will be a check box at the bottom of the tab labeled "Enable Protected Mode".
Additionally, "Enhanced Protected Mode" must be disabled for IE 10 and higher. This option is found in the Advanced tab of the Internet Options dialog.
The browser zoom level must be set to 100% so that the native mouse events can be set to the correct coordinates.
For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates. For 32-bit Windows installations, the key you must examine in the registry editor is
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. For 64-bit Windows installations, the key is
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE. Please note that the
FEATURE_BFCACHEsubkey may or may not be present, and should be created if it is not present. Important: Inside this key, create a DWORD value named
iexplore.exewith the value of 0.
相关文章推荐
- Java enum的用法详解
- iOS 耗时操作放在子线程,阻止线程阻塞
- hadoop跨集群传输数据
- JavaScript知识点总结(十)之this关键字
- leetcode 101. Symmetric Tree
- angularJSONP简洁版
- 360加固宝加固应用后,出现java.lang.ClassNotFoundException异常
- WEB-INF目录与META-INF目录的作用
- Mac下使用wireshark解决Interface为空的办法
- 分离EF connectionString里的db连接串
- 固定电话+手机号码正则表达式
- cocos creator prefab中的label设置容无效的问题
- Android多功能时钟开发案例(基础篇)
- Windows不能在本地计算机启动OracleDBConsoleorcl
- android 设置透明效果
- Web设计师应该收藏的11个网站
- ABAP: Field-Symbols:<FS>用法
- BZOJ3417: Poi2013 Tales of seafaring
- 初始化Imageloader
- Ubuntu设置静态IP的方法