Why is Selenium WebDriver throwing Session not create exception error message ?

  • 0 Replies
  • 3313 Views
Hi Team,

Selenium Webdriver is not opening Microsoft edge. It is throwing 'Session not create exception error' message.  Why is it throwing below error message ?

Selenium : 3.0.1
OS : Windows 10

Code:-

String service = "C:\\MicrosoftWebDriver.exe";
System.setProperty("webdriver.edge.driver",service);
WebDriver driver = new EdgeDriver();
driver.navigate().to("https://www.google.co.in/");

Error Message

Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}], required capabilities = Capabilities [{}]


Thanks in advance !

 

Sitemap 1 2 3 4 5 6 7 8