Open Edge browser with Selenium WebDriver

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Open Edge browser with Selenium WebDriver

ma8061337

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?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/80a799e8-0098-438b-b732-2d94b2d39386%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Open Edge browser with Selenium WebDriver

Shawn McCarthy-2
Not sure if its related, but Edge doesn't have profiles like Firefox or Chrome.

On Tuesday, April 24, 2018 at 10:23:58 AM UTC-7, [hidden email] wrote:

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'
<a title="os.name" href="http://disq.us/url?url=http%3A%2F%2Fos.name%3AIHC9j4n_GK8Oolqj7oapsRrgFoA&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252Fos.name%253AIHC9j4n_GK8Oolqj7oapsRrgFoA%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETSkpuRDG8mAkIZpoFb-HGzvnWJA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252Fos.name%253AIHC9j4n_GK8Oolqj7oapsRrgFoA%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETSkpuRDG8mAkIZpoFb-HGzvnWJA&#39;;return true;">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(<a title="ProtocolHandshake.java" href="http://disq.us/url?url=http%3A%2F%2FProtocolHandshake.java%3AFVD26zax7QuOObQCPLqsYshotuA&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FProtocolHandshake.java%253AFVD26zax7QuOObQCPLqsYshotuA%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEPmMftstBujR79SSn8yYnrE_Fy1A&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FProtocolHandshake.java%253AFVD26zax7QuOObQCPLqsYshotuA%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEPmMftstBujR79SSn8yYnrE_Fy1A&#39;;return true;">ProtocolHandshake.java:111)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(<a title="ProtocolHandshake.java" href="http://disq.us/url?url=http%3A%2F%2FProtocolHandshake.java%3AFVD26zax7QuOObQCPLqsYshotuA&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FProtocolHandshake.java%253AFVD26zax7QuOObQCPLqsYshotuA%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEPmMftstBujR79SSn8yYnrE_Fy1A&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FProtocolHandshake.java%253AFVD26zax7QuOObQCPLqsYshotuA%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEPmMftstBujR79SSn8yYnrE_Fy1A&#39;;return true;">ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(<a title="HttpCommandExecutor.java" href="http://disq.us/url?url=http%3A%2F%2FHttpCommandExecutor.java%3AZFEefVebEo4O9uRhGB5vtqTnJCQ&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FHttpCommandExecutor.java%253AZFEefVebEo4O9uRhGB5vtqTnJCQ%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEplxzSbvaItKaEAJVaRbTmBjLX8Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FHttpCommandExecutor.java%253AZFEefVebEo4O9uRhGB5vtqTnJCQ%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEplxzSbvaItKaEAJVaRbTmBjLX8Q&#39;;return true;">HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(<a title="DriverCommandExecutor.java" href="http://disq.us/url?url=http%3A%2F%2FDriverCommandExecutor.java%3AY1xgTzZw194gd06aTzcHIR9QZhk&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FDriverCommandExecutor.java%253AY1xgTzZw194gd06aTzcHIR9QZhk%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF3NKu35i5xHfnD4xXJC4fCQUiF-g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FDriverCommandExecutor.java%253AY1xgTzZw194gd06aTzcHIR9QZhk%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF3NKu35i5xHfnD4xXJC4fCQUiF-g&#39;;return true;">DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(<a title="RemoteWebDriver.java" href="http://disq.us/url?url=http%3A%2F%2FRemoteWebDriver.java%3AyXZDr8pXp2EYW-YJvP_eF8Vx_9o&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FRemoteWebDriver.java%253AyXZDr8pXp2EYW-YJvP_eF8Vx_9o%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGE6AvJZ24rHZXUyw9iU1hCIM9cBg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FRemoteWebDriver.java%253AyXZDr8pXp2EYW-YJvP_eF8Vx_9o%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGE6AvJZ24rHZXUyw9iU1hCIM9cBg&#39;;return true;">RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(<a title="RemoteWebDriver.java" href="http://disq.us/url?url=http%3A%2F%2FRemoteWebDriver.java%3AyXZDr8pXp2EYW-YJvP_eF8Vx_9o&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FRemoteWebDriver.java%253AyXZDr8pXp2EYW-YJvP_eF8Vx_9o%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGE6AvJZ24rHZXUyw9iU1hCIM9cBg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FRemoteWebDriver.java%253AyXZDr8pXp2EYW-YJvP_eF8Vx_9o%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGE6AvJZ24rHZXUyw9iU1hCIM9cBg&#39;;return true;">RemoteWebDriver.java:209)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(<a title="RemoteWebDriver.java" href="http://disq.us/url?url=http%3A%2F%2FRemoteWebDriver.java%3AyXZDr8pXp2EYW-YJvP_eF8Vx_9o&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FRemoteWebDriver.java%253AyXZDr8pXp2EYW-YJvP_eF8Vx_9o%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGE6AvJZ24rHZXUyw9iU1hCIM9cBg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FRemoteWebDriver.java%253AyXZDr8pXp2EYW-YJvP_eF8Vx_9o%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGE6AvJZ24rHZXUyw9iU1hCIM9cBg&#39;;return true;">RemoteWebDriver.java:132)
at org.openqa.selenium.edge.EdgeDriver.<init>(<a title="EdgeDriver.java" href="http://disq.us/url?url=http%3A%2F%2FEdgeDriver.java%3AAqEuvE6rKXb5QDWUzBGH7FmcK5c&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FEdgeDriver.java%253AAqEuvE6rKXb5QDWUzBGH7FmcK5c%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZS07UcsB21CeM3LvE75W_pbrLXw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FEdgeDriver.java%253AAqEuvE6rKXb5QDWUzBGH7FmcK5c%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZS07UcsB21CeM3LvE75W_pbrLXw&#39;;return true;">EdgeDriver.java:141)
at org.openqa.selenium.edge.EdgeDriver.<init>(<a title="EdgeDriver.java" href="http://disq.us/url?url=http%3A%2F%2FEdgeDriver.java%3AAqEuvE6rKXb5QDWUzBGH7FmcK5c&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FEdgeDriver.java%253AAqEuvE6rKXb5QDWUzBGH7FmcK5c%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZS07UcsB21CeM3LvE75W_pbrLXw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FEdgeDriver.java%253AAqEuvE6rKXb5QDWUzBGH7FmcK5c%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHZS07UcsB21CeM3LvE75W_pbrLXw&#39;;return true;">EdgeDriver.java:96)
at projectOne.classOne.main(<a title="classOne.java" href="http://disq.us/url?url=http%3A%2F%2FclassOne.java%3AwV4iLMkviZvUF4gfXTbc_5TJsrI&amp;cuid=4443278" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FclassOne.java%253AwV4iLMkviZvUF4gfXTbc_5TJsrI%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUEtj4GaWypeNTZOqFCcOvMw1c1Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdisq.us%2Furl%3Furl%3Dhttp%253A%252F%252FclassOne.java%253AwV4iLMkviZvUF4gfXTbc_5TJsrI%26cuid%3D4443278\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGUEtj4GaWypeNTZOqFCcOvMw1c1Q&#39;;return true;">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?

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3402404a-b101-4100-87df-c95c428ed046%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.