I have microsoft edge installed on my machine with below versions:
Microsoft Edge 44.18362.449.0
Microsoft EdgeHTML 18.18363
I am trying to use webdrivermanager
to run my automation test (java+selenium
) on Edge
by the below code:
WebDriverManager.edgedriver().setup();
driver = new EdgeDriver();
But, it complains with the below error:
WebDriverManagerException: MicrosoftWebDriver.exe should be pre-installed in an elevated command prompt executing: dism /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
- Shouldn't the
webdrivermanager
dowbload and install it for me? - How can i fix this issue?