Edge Webdriver: Selenium cannot retrieve a session if RDP connection to node is not established

By design Issue #11041291

Details

Author
Olena F.
Created
Feb 23, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 6 people

Sign in to watch or report this issue.

Steps to reproduce

I am using Selenium grid to run UI tests.
Recently we decided to add MS Edge to our grid.
And unfortunately I noticed that tests are running successfully only if there is RDP connection to Windows 10 established, where I have selenium node with Edge installed.

I reproduced this problem on different versions of Selenium: 2.53.1 and 3.0.1.
The same result.

Error retrieving a new session from the selenium server

Connection refused! Is selenium server started?
{ state: 'session not created’,
sessionId: null,
hCode: 379242803,
value:
{ additionalInformation: '\nDriver info: driver.version: EdgeDriver’,
localizedMessage: 'Unable to create new remote session. desired capabilities = Capabilities [{acceptSslCerts=true, name=Edit Mode / About, browserName=MicrosoftEdge, javascriptEnabled=true, platform=WIN10}], required capabilities = Capabilities [{}]\nBuild info: version: '3.1.0’, revision: '86a5d70’, time: '2017-02-16 07:57:44 -0800’\nSystem info: host: 'NUEW-G3S-W10TPL’, ip: '10.101.226.157’, os.name: 'Windows 10’, os.arch: 'amd64’, os.version: '10.0’, java.version: '1.8.0_101’\nDriver info: driver.version: EdgeDriver’,
supportUrl: null,
systemInformation: 'System info: host: 'NUEW-G3S-W10TPL’, ip: '10.101.226.157’, os.name: 'Windows 10’, os.arch: 'amd64’, os.version: '10.0’, java.version: '1.8.0_101’’,
cause: null,
suppressed: [],
message: 'Unable to create new remote session. desired capabilities = Capabilities [{acceptSslCerts=true, name=Edit Mode / About, browserName=MicrosoftEdge, javascriptEnabled=true, platform=WIN10}], required capabilities = Capabilities [{}]\nBuild info: version: '3.1.0’, revision: '86a5d70’, time: '2017-02-16 07:57:44 -0800’\nSystem info: host: 'NUEW-G3S-W10TPL’, ip: '10.101.226.157’, os.name: 'Windows 10’, os.arch: 'amd64’, os.version: '10.0’, java.version: '1.8.0_101’\nDriver info: driver.version: EdgeDriver’,
hCode: 1188197089,
class: 'org.openqa.selenium.SessionNotCreatedException’,
buildInformation:
{ buildTime: '2017-02-16 07:57:44 -0800’,
buildRevision: '86a5d70’,
releaseLabel: '3.1.0’,
hCode: 1146797867,
class: ‘org.openqa.selenium.internal.BuildInfo’ },
screen: null },
class: 'org.openqa.selenium.remote.Response’,
status: 33 }

OR

Error retrieving a new session from the selenium server

Connection refused! Is selenium server started?
{ [Error: connect ENETUNREACH 10.101.226.157:4441 - Local (0.0.0.0:56467)]
code: 'ENETUNREACH’,
errno: 'ENETUNREACH’,
syscall: 'connect’,
address: '10.101.226.157’,
port: 4441 }

System information:
Edition: Windows 10 Pro
Version 1607
OS Build 14393.693
Microsoft Edge 38.14393.0.0
Microsoft EdgeHTML 14.14393
Edge Webdriver: Release 14393

Selenium-standalone: 2.53.1 and 3.0.1

Node configuration:
{
"capabilities":
[
{
"browserName": "MicrosoftEdge",
"version": "38",
"maxInstances": 5,
"seleniumProtocol": “WebDriver”
}
],
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 5,
"port": 5555,
"register": true,
"registerCycle": 5000,
"hub": "http://10.101.226.150:4448",
"nodeStatusCheckTimeout": 5000,
"nodePolling": 5000,
"role": "node",
"unregisterIfStillDownAfter": 60000,
"downPollingLimit": 2,
"debug": false,
“servlets” : [],
"withoutServlets": [],
"custom": {}
}

Problem is reproducible both when running via grid and directly to selenium standalone server.

We have continuous integration in Jenkins and we cannot support Edge completely without EDGE Webdriver working properly.

Seems to be an issue not only for us:
https://github.com/SeleniumHQ/selenium/issues/2054
“I’m one of those lucky people you referred to who is able to get Edge working remotely (i.e., a remote node via a remote hub). Using selenium 2.53.1 or 3.0.1. I wasn’t able to get it to work unless I had an RDP session open to the node. That is, web-driving Edge, like IE, won’t work remotely unless it’s running in an active GUI environment. At least that’s the only way I’ve got it to work.”

P.S. I cannot upload file with defect reproduction screen recording (34 Mb) in your Issue reporting form.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Status to “By design”

    • Hello,

      Thank you for providing this information about the issue. All Universal Windows Platforms require a user session to be running to work. As WebDriver uses Edge, it also requires this.

      Best Wishes,
      The MS Edge Team

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

    Sign in