1 year ago
#291980
Eshna Prashar
Selenium not able to open MS Edge Chromium browser, getting error as :- unknown error: MSEdge failed to start: crashed."
I am trying to open MS Edge Chromium version browser via Selenium Java. It gives error:-'Exception org.openqa.selenium.WebDriverException occured while creating MSEdge driver instance.' errorDetails='org.openqa.selenium.WebDriverException: unknown error: MSEdge failed to start: crashed.(unknown error: DevToolsActivePort file doesn't exist) (The process started from msedge location C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe is no longer running, so MSEdgeDriver is assuming that MSEdge has crashed.)
After reading various posts on stackoverflow, that we need to give administrative access. I gave admin access to Edge via Start > Type Edge > Right click on it > Open file location> Right click on the Edge icon> Properties > In the Compatibility tab tick the box of Run this program as an administrator. By doing this it solves the above mentioned error. But start giving another one:-@text='Exception org.openqa.selenium.WebDriverException occured while creating MSEdge driver instance.' errorDetails='org.openqa.selenium.WebDriverException: unknown error: Failed to create MSEdge process. (Driver info: msedgedriver=98.0.1108.55 (8e8d1f96aad47d4da4fa4b0e82b2d025674395e7),platform=Windows NT 10.0.18363 x86_64) (WARNING: The server did not provide any stacktrace information)
My system's configuration details:- OS- Windows 10 Enterprise- 64 bit Selenium- Selenium 4 IDE- Intelli J MS Edge Version- Version 98.0.1108.55 (64bit) MSEdge Driver Version- 98.0.1108.55
Code to configure MSEdge:-
public static WebDriver createMSEdgeDriverInstance{
System.setProperty("webdriver.edge.driver","CompletePath\\msedgedriver.exe");
EdgeDriver driver = new EdgeDriver();
driver.get("www.google.com");
return driver;}
Please help me in this .
java
selenium
microsoft-edge
selenium-edgedriver
0 Answers
Your Answer