【发布时间】:2020-02-13 07:42:35
【问题描述】:
我启动了 Web 驱动程序并尝试连接 URL,但它返回异常 发生的情况是:打开 Web 浏览器,但不指向给定的 Url,并在控制台日志上打印错误。
我的代码如下:
Webdriver driver = new EdgeDriver();
driver.get("https://docs.microsoft.com/en-us/welcome-to-docs");
错误日志:
org.openqa.selenium.WebDriverException:无法解析远程响应:未知错误
在 org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115)
在 org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
在 org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
我启用了开发者模式
我已经在 (C:\WINDOWS\system32>) 中使用以下命令安装了 WebDriver: DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
我使用以下版本:
硒版本:'3.141.59'
浏览器:Microsoft Edge,版本 80.0.361.50(官方版本) (64 位)
操作系统版本:18362.535
Windows 版:10 版本 1903
对此有何想法?
【问题讨论】:
标签: selenium selenium-webdriver webdriver microsoft-edge