Open Edge browser with Selenium WebDriver

412 views
Skip to first unread message

ma80...@gmail.com

unread,
Apr 24, 2018, 1:23:58 PM4/24/18
to Selenium Users

Hi folks,

I'm using,
- Selenium 3.11.0
- Java binding
- Windows 10 (build 15063.1029)
- Edge driver (Version: 4.15063 | Edge version supported: 15.15063 )


Here is my code to open the browser,
import org.openqa.selenium.edge.EdgeDriver;
System.setProperty("webdriver.edge.driver", C://mE//Selenium//Installation//Drivers//Edge//v15063//MicrosoftWebDriver.exe");
WebDriver driver = new EdgeDriver();


The browser (Edge) opens for a sec and then disappears immediately. Here is the error (unknown),


Exception in thread "main" org.openqa.selenium.WebDriverException: Unable to parse remote response: Unknown error
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:08.638Z'
os.name: 'Windows 10', os.version: '10.0', java.version: '10.0.1'
Driver info: driver.version: EdgeDriver
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:111)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:209)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:132)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:141)
at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:96)
at projectOne.classOne.main(classOne.java:66)


Just curious, if anyone had experienced similar issues and if so, what was the solution? Also, notice that, only one instance of Edge can be opened at any given time. Is this a limitation about Edge?

Shawn McCarthy

unread,
Apr 24, 2018, 10:20:39 PM4/24/18
to Selenium Users
Not sure if its related, but Edge doesn't have profiles like Firefox or Chrome.
Reply all
Reply to author
Forward
0 new messages