- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我一直在尝试使用 selenium 并尝试运行 Internet Explorer 11,但出现以下错误。
Started InternetExplorerDriver server (32-bit)
3.1.0.0
Listening on port 25172
Only local connections are allowed
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl. java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.pccw.bpss.qa.automation.Application.execute_Actions(Application.java:79)
at com.pccw.bpss.qa.automation.Application.executeTestCase(Application.java:71)
at com.pccw.bpss.qa.automation.Application.main(Application.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to
create new remote session. desired capabilities = Capabilities
[{ie.ensureCleanSession=true}], required capabilities = Capabilities [{}]
Build info: version: '3.1.0', revision: 'b94c902', time: '2017-02-16
12:21:31 -0800'
System info: host: 'PC81013161', ip: '10.37.210.32', os.name: 'Windows
10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_92'
Driver info: driver.version: InternetExplorerDriver at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:227)
at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:182)
at org.openqa.selenium.ie.InternetExplorerDriver.<init> (InternetExplorerDriver.java:174)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:150)
at com.pccw.bpss.qa.automation.execution.ActionKeywords.openBrowser(ActionKeywords.java:45)
... 12 more
我试过它运行 Firefox 并且运行良好。我也试过修改 IE 的安全功能,但我仍然遇到同样的错误。
下面是发生错误的代码片段。该错误发生在 InternetExplorerDriver() 初始化时
System.setProperty(KEY_IE_DRIVE, FILE_PATH_DRIVER_IE_X32_EXE);
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION, true);
driver = new InternetExplorerDriver(cap);
driver.manage().window().maximize();
最佳答案
看看以下内容是否有帮助:
关于java - 如何在 Selenium 中使用 IEDriver?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42661646/
在我的时区早上好。 我正在构建 Selenium 2.0 测试,并且正在使用 IEDriver。我正在按照说明进行操作在本引用文献中InternetExplorerDriver 。 我应该将可执行文件
我如何接受使用 selenium 和 IEDriver 保存此下载链接? (这已经是一个 iedriver 页面) 最佳答案 无法使用 selenium 控制浏览器上的下载弹出窗口,因为浏览器使用无法
我知道这是一个基本问题,但我无法解决它。 我下载了示例 serenity 项目 (mvn archetype serenity-junit-screenplay-archetype) (https:/
我一直在尝试使用 selenium 并尝试运行 Internet Explorer 11,但出现以下错误。 Started InternetExplorerDriver server (32-bit)
我使用 selenium 在 visual studio 中编写了一个简单的测试,它在 Firefox 中运行。但是,我试图在多个浏览器上运行相同的测试,但我不断收到相同的错误,即在目录或 PAT
我想要的是实现这个方法 public static void IECloseWindows(){ } public static void ChromeCloseWindows(){ } 我的驱动
org.openqa.selenium.NoSuchWindowException: Unable to get browser (WARNING: The server did not provid
我正在使用 selenium webdriver(用于 Internet Explorer)。它的作用基本上是在 Internet Explorer 中打开网页并提交表单。 如何自动杀死在后台运行的
当驱动程序启动浏览器时,它总是与本地主机打开然后导航到给定的 URL,但驱动程序未获取当前页面标题而不是始终显示本地主机标题“此页面不能显示”。我正在发布我的代码和我收到的错误,请告诉我我哪里错了。
我有一点疑问。 为什么我们需要 IEdriver 和 Chrome 驱动程序在 IE 和 Chrome 中运行 selenium scrits,但我们不需要 firefox 驱动程序来运行脚本? 有同
使用 selenium IEwebdriver,webdriver Alert 类方法不起作用...这个问题似乎是 IE 浏览器特有的,而在 chrome、ff 等浏览器中效果很好。 我们可以使用任何
我有一套在 Firefox 和 Chrome 中运行良好的自动化功能,并且我还想启动 IEDriver 的实例。 我已按照 Selenium's Google Code wiki 设置 IEDrive
我有 Selenium IE 驱动程序,用 Java 编码。此 Webapp 仅与 IE9 兼容。我必须使用 SSL 信任证书,然后使用 Autoit_script 来绕过 IE9 中的这些证书弹出窗
大家好, 我将 Selenium 与各种驱动程序一起使用,但今天当我第一次使用 IEDriver 时出现异常:"Error retrieving window with handle current"
我正在尝试查找以下代码的 xpath。但它显示出一些错误。检查元素是: driver.findElement(By.id("C2_W10_V11_btnCREATE_CUSTMC")).
我正在使用 Selenium-Firefox-driver 和 Selenium-Chrome-Driver 2.0a5 版(Web Driver API),并且我我正在尝试测试具有 BASIC 身份
我在 Win10 上使用 IEDriverServer 3.9 和 IE 11。使用 C# 和 .NET frmaework 4.6.1 测试解决方案。 我在进行 selenium 测试时遇到经典错误
我是一名优秀的程序员,十分优秀!