I have recently updated my selenium libraries from 2.46.0 to 2.53.0 (the most recent) in order to run tests on a Windows 10 machine with the Edge browser.
I have add
I had also faced this issue where the Edge Browser was getting opened. But it wasn't loading the website URL and got auto-closed.
I tried this with Selenium 3.0 Beta2 and Windows 10. I got this issue because I was using incorrect version of MicrosoftWebDriver.exe. When I used the correct version of the webdriver, then this issue got rectified.
I used the below steps to resolve this issue -
Go to Start > Settings > System > About and note down the OS Build number.
Download the proper version of the driver from this link - https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
If the file that's downloaded is .msi, then install it to get the .exe driver. For one of the release, direct .exe can be downloaded.
Sample Script that I used is given below -
System.setProperty("webdriver.edge.driver","C:\\Program Files (x86)\\Microsoft Web Driver\\MicrosoftWebDriver.exe"); //put actual location
WebDriver driver = new EdgeDriver();
driver.get("your link");
You can refer this article, if you want to see the detailed steps - http://automationtestinghub.com/selenium-3-launch-microsoft-edge-with-microsoftwebdriver/