Unable to get browser (Selenium::WebDriver::Error::NoSuchWindowError)
2017-07-03 19:34
260 查看
运行Ruby程序调用
1.设置–>Internet选项–>安全
这里将图片中标注为2的四个选项(Internet,本地Internet,受信任的站点,受限制的站点)中每一个标注为3的复选框(启用保护模式……)选中,如图所示。这个需要重新启动计算机才能生效。
2. 维基百科中的方法
对于IE 11,您将需要在目标计算机上设置注册表项,以便驱动程序可以维护与其创建的Internet Explorer实例的连接。
对于32位Windows,必须在注册表编辑器(win+r并运行regedit)中检查的密钥是
对于64位Windows,密钥是
请注意,
(谷歌翻译,凑合着看吧)
维基百科原文请点击这里
Internet Explorer 11会出现这样的错误,不是因为
IEDriverServer出现问题,而是因为
Internet Explorer 11自身的原因。对于这样的问题有如下的解决方案:
1.设置–>Internet选项–>安全
这里将图片中标注为2的四个选项(Internet,本地Internet,受信任的站点,受限制的站点)中每一个标注为3的复选框(启用保护模式……)选中,如图所示。这个需要重新启动计算机才能生效。
2. 维基百科中的方法
对于IE 11,您将需要在目标计算机上设置注册表项,以便驱动程序可以维护与其创建的Internet Explorer实例的连接。
对于32位Windows,必须在注册表编辑器(win+r并运行regedit)中检查的密钥是
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Internet Explorer \ Main \ FeatureControl \ FEATURE_BFCACHE。
对于64位Windows,密钥是
HKEY_LOCAL_MACHINE \ SOFTWARE \ Wow6432Node \ Microsoft \ Internet Explorer \ Main \ FeatureControl \ FEATURE_BFCACHE。
请注意,
FEATURE_BFCACHE子项可能或可能不存在,如果不存在,则应该创建,在此键内,创建一个值为0的名为
iexplore.exe的
DWORD值。
(谷歌翻译,凑合着看吧)
维基百科原文请点击这里
相关文章推荐
- 解决Ruby在IE11中报Unable to get browser (Selenium::WebDriver::Error::NoSuchWindowError)的错误
- (org.openqa.selenium.WebDriverException: Unable to launch the app: Error: Trying to start logcat capture but it's already started! )错误解决办法
- No Alert is present/No modal dialog found — WebDriver unable to catch JS error
- How to get browser name, version and operating system detail in selenium 2(Web driver)
- jenkins里跑selenium webdriver,Chrome浏览器不能打开&&unknown error: unable to discover open pages
- Selenium::WebDriver::Error::WebDriverError:Unable to find standalone executable解决办法
- Selenium::WebDriver::Error::WebDriverError:Unable to find standalone executable解决办法
- 解决selenium2在IE11上出错的问题,如Unable to get browser
- selenium问题:webdriver Unable to connect to host 127.0.0.1 on port 7055
- 解决: selenium webdriver unable to find Mozilla geckodriver
- 解决selenium2在IE11上出错的问题,如Unable to get browser
- webdriver selenium org.openqa.selenium.remote.UnreachableBrowserException: Error
- 关于:selenium.common.exceptions.WebDriverException: Message: unknown error: cannot get automation exte
- Python爬虫——selenium.common.exceptions.WebDriverException: Message: Failed to set preferences: Unable
- 解决org.openqa.selenium.WebDriverException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms org.springframework.beans.BeanInstantiation
- How can selenium web driver get to know when the new window has opened and then resume its execution
- pycharm运行selenium+webdriver(chromedriver)报错:unknown error: chrome failed to start
- Selenium2学习-038-firefox、webdriver版本不对称问题解决:org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055
- webdriver selenium org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with
- 升级Firefox8后watir-webdriver出现错误“unable to obtain stable firefox connection in 60 seconds”