Does Selenium v3.0.1 RemoteWebDriver (ie grid) work with MicorsoftEdge driver?

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

Does Selenium v3.0.1 RemoteWebDriver (ie grid) work with MicorsoftEdge driver?

Kendall Schmidt
Does Selenium v3.0.1 RemoteWebDriver (ie grid) work with MicorsoftEdge driver?

I'm getting the following exception:

I'm running the following:
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{proxy=org.openqa.selenium.Proxy@57b3fb03, browserVersion=14, browserName=MicrosoftEdge, takesScreenshot=true version=14, platform=ANY, unexpectedAlertBehaviour=ignore}], required capabilities = Capabilities [{}]
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
  • Selenium v3.0.1, using Java bindings
  • Windows 10 Edge VM v14393.447
  • MicrosoftWebDriver.exe v14.14393

I've set the system property 'webdriver.edge.driver' to point to the absolute path where the 'MicrosoftWebDriver.exe' resides on the Windows 10 Edge VM.


In my code I'm doing:
DesiredCapabilities capabilities = DesiredCapabilities.edge();
RemoteWebDriver webdriver = new RemoteWebDriver(seleniumHubUrl, capabilities);

Not sure what I'm missing or have improperly configured.
Any insight would be greatly appreciated.

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/ab4f9247-b9a4-4ce5-b523-ae9754c773d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Selenium v3.0.1 RemoteWebDriver (ie grid) work with MicorsoftEdge driver?

Kendall Schmidt
I can also add that ProtocolHandshake.createSession() is calling POST /session which results in an HTTP status-code of 500 (internal server error). I can see a MicrosoftWebDriver.exe process is started on the node and left running after the POST call.  After seeing this, I made sure there were no orphaned MicrosoftWebDriver.exe processes running before attempting to create the session again. Same result - SessionNotCreatedException.  I'm beginning to wonder if the MicrosoftWebDriver itself is failing to return a proper response?

Here is the exception in the selenium-webdriver log from the node itself:

2016-12-06 12:15:26,725  INFO [DriverServlet-handle-qtp1981677252-21] - Executing: [new session: Capabilities [{proxy={proxyAutoconfigUrl=null, autodetect=false, socksUsername=null, socksPassword=null, httpProxy=null, proxyType=DIRECT, noProxy=null, ftpProxy=null, socksProxy=null, hCode=1600785259, class=org.openqa.selenium.Proxy, sslProxy=null}, browserVersion=14, browserName=MicrosoftEdge, takesScreenshot=true, version=14, platform=WINDOWS, unexpectedAlertBehaviour=ignore}]])
2016-12-06 12:15:26,725  INFO [DefaultDriverProvider-newInstance-Session 6164607c-7439-47b0-8926-7aa70da7b684 processing inside browser] - Creating a new session for Capabilities [{proxy={proxyAutoconfigUrl=null, autodetect=false, socksUsername=null, socksPassword=null, httpProxy=null, proxyType=DIRECT, noProxy=null, ftpProxy=null, socksProxy=null, hCode=1600785259, class=org.openqa.selenium.Proxy, sslProxy=null}, browserVersion=14, browserName=MicrosoftEdge, takesScreenshot=true, version=14, platform=WINDOWS, unexpectedAlertBehaviour=ignore}]
2016-12-06 12:15:27,272  INFO [ProtocolHandshake-createSession-Forwarding newSession on session null to remote] - Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
2016-12-06 12:15:27,287  INFO [ProtocolHandshake-createSession-Forwarding newSession on session null to remote] - Falling
back to original OSS JSON Wire Protocol.
2016-12-06 12:15:27,303  INFO [ProtocolHandshake-createSession-Forwarding newSession on session null to remote] - Falling back to straight W3C remote end connection
2016-12-06 12:15:27,319  WARN [DriverServlet-handle-qtp1981677252-21] - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '
unknown', revision: 'unknown', time: 'unknown'
System info: host: '
MSEDGEWIN10', ip: '10.110.132.35', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: driver.version: unknown
    at java.util.concurrent.FutureTask.report(Unknown Source)
    at java.util.concurrent.FutureTask.get(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:183)
    at org.openqa.selenium.remote.server.DefaultSession.<init>(DefaultSession.java:119)
    at org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:95)
    at org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:131)
    at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:59)
    at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:36)
    at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:111)
    at org.openqa.selenium.remote.server.JsonHttpCommandHandler.handleRequest(JsonHttpCommandHandler.java:189)
    at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:222)
    at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:184)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:150)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at org.seleniumhq.jetty9.servlet.ServletHolder.handle(ServletHolder.java:808)
    at org.seleniumhq.jetty9.servlet.ServletHandler.doHandle(ServletHandler.java:587)
    at org.seleniumhq.jetty9.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    at org.seleniumhq.jetty9.servlet.ServletHandler.doScope(ServletHandler.java:515)
    at org.seleniumhq.jetty9.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    at org.seleniumhq.jetty9.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    at org.seleniumhq.jetty9.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    at org.seleniumhq.jetty9.server.Server.handle(Server.java:499)
    at org.seleniumhq.jetty9.server.HttpChannel.handle(HttpChannel.java:310)
    at org.seleniumhq.jetty9.server.HttpConnection.onFillable(HttpConnection.java:257)
    at org.seleniumhq.jetty9.io.AbstractConnection$2.run(AbstractConnection.java:540)
    at org.seleniumhq.jetty9.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
    at org.seleniumhq.jetty9.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '
unknown', revision: 'unknown', time: 'unknown'
System info: host: '
MSEDGEWIN10', ip: '10.110.132.35', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: driver.version: unknown
    at org.openqa.selenium.remote.server.DefaultDriverProvider.callConstructor(DefaultDriverProvider.java:113)
    at org.openqa.selenium.remote.server.DefaultDriverProvider.newInstance(DefaultDriverProvider.java:97)
    at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:60)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:222)
    at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:209)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    ... 1 common frames omitted
Caused by: java.lang.reflect.InvocationTargetException: null
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.server.DefaultDriverProvider.callConstructor(DefaultDriverProvider.java:103)
    ... 9 common frames omitted
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{proxy={proxyAutoconfigUrl=null, autodetect=false, socksUsername=null, socksPassword=null, httpProxy=null, proxyType=DIRECT, noProxy=null, ftpProxy=null, socksProxy=null, hCode=1600785259, class=org.openqa.selenium.Proxy, sslProxy=null}, browserVersion=14, browserName=MicrosoftEdge, takesScreenshot=true, version=14, platform=WINDOWS, unexpectedAlertBehaviour=ignore}], required capabilities = Capabilities [{}]
Build info: version: '
unknown', revision: 'unknown', time: 'unknown'
System info: host: '
MSEDGEWIN10', ip: '10.110.132.35', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: driver.version: EdgeDriver
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:91)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:241)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:128)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:141)
    at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:152)
    at org.openqa.selenium.edge.EdgeDriver.<init>(EdgeDriver.java:120)
    ... 14 common frames omitted
2016-12-06 12:15:27,319  WARN [DriverServlet-handle-qtp1981677252-21] - Exception: Unable to create new remote session. desired capabilities = Capabilities [{proxy={proxyAutoconfigUrl=null, autodetect=false, socksUsername=null, socksPassword=null, httpProxy=null, proxyType=DIRECT, noProxy=null, ftpProxy=null, socksProxy=null, hCode=1600785259, class=org.openqa.selenium.Proxy, sslProxy=null} browserVersion=14, browserName=MicrosoftEdge, takesScreenshot=true, version=14, platform=WINDOWS, unexpectedAlertBehaviour=ignore}], required capabilities = Capabilities [{}]
Build info: version: '
unknown', revision: 'unknown', time: 'unknown'
System info: host: '
MSEDGEWIN10', ip: '10.110.132.35', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: driver.version: EdgeDriver




On Friday, December 2, 2016 at 3:15:46 PM UTC-6, Kendall Schmidt wrote:
Does Selenium v3.0.1 RemoteWebDriver (ie grid) work with MicorsoftEdge driver?

I'm getting the following exception:

I'm running the following:
org.openqa.selenium.SessionNotCreatedException: Unable to create new remote session. desired capabilities = Capabilities [{proxy=org.openqa.selenium.Proxy@57b3fb03, browserVersion=14, browserName=MicrosoftEdge, takesScreenshot=true version=14, platform=ANY, unexpectedAlertBehaviour=ignore}], required capabilities = Capabilities [{}]
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
  • Selenium v3.0.1, using Java bindings
  • Windows 10 Edge VM v14393.447
  • MicrosoftWebDriver.exe v14.14393

I've set the system property 'webdriver.edge.driver' to point to the absolute path where the 'MicrosoftWebDriver.exe' resides on the Windows 10 Edge VM.


In my code I'm doing:
DesiredCapabilities capabilities = DesiredCapabilities.edge();
RemoteWebDriver webdriver = new RemoteWebDriver(seleniumHubUrl, capabilities);

Not sure what I'm missing or have improperly configured.
Any insight would be greatly appreciated.

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-developers/cebd900d-1d0f-48d2-9a38-50ba1d733d81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.