此错误消息…
WebDriverManagerException: MicrosoftWebDriver.exe should be pre-installed in an elevated command prompt executing: dism /online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
…暗示 WebDriverManager* 在启动/产生新的 浏览上下文( 即 Microsoft Edge Browser
会话)的过程中将无法安装最新版本的 MicrosoftWebDriver 二进制文件。 ***
当您按照Microsoft WebDriver中的文档使用 Microsoft EdgeHTML 18时
:
Microsoft Edge的Microsoft
WebDriver(EdgeHTML)版本18和19是Windows按需提供的功能,可确保其始终自动保持最新状态,并提供了一些获取Microsoft
WebDriver的新方法。
脚步
要配置,您将必须启用开发人员模式:
Go to Settings > Update and Security > For Developer and then select "Developer mode".
要安装,请通过提升的命令提示符运行 Microsoft Edge版本18 :
DISM.exe /online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
注意 :通过命令安装 MicrosoftWebDriver时
DISM,默认情况下,WebDriver安装在以下子目录中:
64位:
C:\Windows\SysWOW64\MicrosoftWebDriver.exe
32位:
C:\Windows\System32\MicrosoftWebDriver.exe
tl; 博士
根据《Microsoft Edge开发人员指南》:
从Windows 10 October 2018 Update(10/2018,Build 17763)开始,EdgeHTML
18包括当前版本的Microsoft Edge平台附带的以下新功能和更新功能。有关特定Windows
Insider Preview版本的更改,请参阅Microsoft
Edge更改日志和EdgeHTML的新增功能。



