MicrosoftWebDriver fails with Selenium v3.0.1 RemoteWebDriver (ie grid)

Confirmed Issue #10088793 • Assigned to Ben B.

Details

Author
Kendall S.
Created
Dec 6, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
38.14393
Reports
Reported by 7 people

Sign in to watch or report this issue.

Steps to reproduce

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

I’m getting the following exception:
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’

I’m running the following:
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);

I can see 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

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To to “Mara P.”

      Changed Assigned To from “Mara P.” to “Ben B.”

      Changed Status to “Confirmed”

    • I’m wondering if this is an issue related to the particular version of Windows 10 being used - Pro vs Enterprise?

    • Is there an update to this issue?

    • Any idea when a fix will be coming for this?

    • Same problem here. Some feedback from Microsoft would be great.

      Honestly, it’s so frustrating to not have any idea of when (or if) this will be fixed.

    • Seeing this in 3.1 too

    You need to sign in to your Microsoft account to add a comment.

    Sign in