selenium2.0中 InternetExplorerDriver报错问题解决方法org.openqa.selenium.WebDriverException: Unexpected error
来源:互联网 发布:游戏数据爆炸 编辑:程序博客网 时间:2024/05/29 06:34
org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information)
页面获取代码没敲错,郁闷了两天,又不想重装系统,从网上搜出了答案,解决方法如下:
方法一:
将test中
复制代码
WebDriver driver = new InternetExplorerDriver();
换成
复制代码
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
WebDriver driver = new InternetExplorerDriver(ieCapabilities);
----------------------这种方法试了无效于是转用第二种方法
方法二:
IE安全保护都去掉: internet选项——安全
internet-启用保护模式 勾去掉
本地internet-启用保护模式 勾去掉
可信站点-启用保护模式 勾去掉
受限站点-启用保护模式 勾去掉
----------------------觉得烦,直接设为默认,然后保存,运行后OK
页面获取代码没敲错,郁闷了两天,又不想重装系统,从网上搜出了答案,解决方法如下:
方法一:
将test中
复制代码
WebDriver driver = new InternetExplorerDriver();
换成
复制代码
DesiredCapabilities ieCapabilities = DesiredCapabilities.internetExplorer();
ieCapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
WebDriver driver = new InternetExplorerDriver(ieCapabilities);
----------------------这种方法试了无效于是转用第二种方法
方法二:
IE安全保护都去掉: internet选项——安全
internet-启用保护模式 勾去掉
本地internet-启用保护模式 勾去掉
可信站点-启用保护模式 勾去掉
受限站点-启用保护模式 勾去掉
----------------------觉得烦,直接设为默认,然后保存,运行后OK
- selenium2.0中 InternetExplorerDriver报错问题解决方法org.openqa.selenium.WebDriverException: Unexpected error
- Appium报错:org.openqa.selenium.NoSuchSessionException
- org.openqa.selenium.WebDriverException: unknown error: Compound class names not permitted
- org.openqa.selenium.WebDriverException: Component returned failure code: 0x80004005 (NS_ERROR_FAILUR
- TestSuite很多skipped,报错Exception org.openqa.selenium.SessionNotCreatedException
- xpath定位报错org.openqa.selenium.NoSuchElementException:
- selenium:org.openqa.selenium.WebDriverException: f.QueryInterface is not a function
- Selenium+webDriver 启动IE11 浏览器报错“org.openqa.selenium.NoSuchWindowException”
- Selenium+webDriver+win10 启动IE11 浏览器报错“org.openqa.selenium.NoSuchWindowException
- webdriver selenium org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with
- webdriver selenium org.openqa.selenium.remote.UnreachableBrowserException: Error
- org.openqa.selenium.StaleElementReferenceException
- org.openqa.selenium.StaleElementReferenceException
- org.openqa.selenium.ElementNotVisibleException
- java.lang.NoClassDefFoundError: org/openqa/selenium/htmlunit/HtmlUnitDriver 问题解决方案
- Appium 报错:org.openqa.selenium.NoSuchWindowException: no such window: target window already closed
- selenium报WebDriverException错误
- Python 中selenium模块报错selenium.common.exceptions.WebDriverException: Message: 'chromedriver'
- 使用NPOI导入导出
- There is a similar question on how to install JRE 7
- 为什么要学习响应式设计
- 手工释放linux内存——/proc/sys/vm/drop_caches
- 局域网 mysql 允许远程连接 设置访问权限
- selenium2.0中 InternetExplorerDriver报错问题解决方法org.openqa.selenium.WebDriverException: Unexpected error
- MyEclipse8.6插件安装方法
- 机器学习中各种距离
- ubuntu-E:Encountered a section with no Package: header的解决办法
- 用户空间与内核空间数据交换的方式(1)------debugfs
- android 联系人信息存储结构
- 反防盗链
- C++信号量 Semaphore 和 MFC中的 CSemaphore类使用
- 2011 wireshark 抓包工具 使用说明 实用过滤表达式(针对ip、协议、端口、长度和内容) 实例介绍