【发布时间】:2020-04-13 06:16:16
【问题描述】:
我在使用 Edge 的 webdriver 时遇到了困难。我知道驱动是通过命令安装的:
DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
但是这之后的下一步是什么?到目前为止,这是我的 Java 代码:
System.setProperty("webdriver.edge.driver", "[I don't know the path of the install]");
@SuppressWarnings("deprecation")
WebDriver driverEdge = new EdgeDriver(options);
driverEdge.get("https://www.google.com/");
【问题讨论】:
-
下一步是找到它的安装位置...但一般来说,如果您可以将驱动程序可执行文件包含在您的存储库中,那么您将总是知道在哪里你可以找到司机。您是在本地运行代码还是在某种管道中运行代码?
标签: selenium selenium-webdriver webdriver microsoft-edge selenium-edgedriver