解决selenium2在IE11上出错的问题,如Unable to get browser
2017-03-30 08:51
429 查看
官方解决方案:
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.
相关文章推荐
- 解决selenium2在IE11上出错的问题,如Unable to get browser
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- Unable to get browser (Selenium::WebDriver::Error::NoSuchWindowError)
- symfony安装问题解决------cURL error 60:SSL certificate problem: unable to get local issuer certificate.
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- 如何解决"unable to get project file from web server"问题
- 安装Adobe Flash CS5出错的解决办法(Exit Code: 7 ERROR: Unable to get root from inChildPath)
- 安装Adobe Flash CS5出错的解决办法(Exit Code: 7 ERROR: Unable to get root from inChildPath)
- 解决Selenium弹出新页面无法定位元素问题(Unable to locate element)
- Selenium2学习-038-firefox、webdriver版本不对称问题解决:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055
- 安装Adobe Flash CS5出错的解决办法(Exit Code: 7 ERROR: Unable to get root from inChildPath)
- checkstyle问题:解决Got an exception - java.lang.RuntimeException: Unable to get class information for ***Exception
- Studio 升级到3.0后出现 Unable to get provider 问题的解决方法
- 使用selenium启动火狐浏览器,解决Unable to create new remote session问题
- Ubuntu 14.04 R上安装rJava包出错问题的解决: error: unable to load shared object (rJava.so)
- cygwin安装问题“unable to get setup.ini from<....>”的解决办法
- "Unable to get image data from canvas because the canvas has been tainted by cross-origin data"问题产生原因及解决办法
- 配置Mysql Cluster时出错Unable to connect with connect string: nodeid=0,localhost:1186问题的解决
- 解决Error generating final archive: Unable to get debug signature key问题