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);
This results in the following exception:
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.36', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: driver.version: EdgeDriver
Command duration or timeout: 0 milliseconds
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
Not sure what I'm missing or have improperly configured. I follow this exact code model for ChromeDriver, Firefox/GeckoDriver, Internet Explorer/IEDriverServer.
Any insight would be greatly appreciated.
java -jar selenium-server-standalone-<version>.jar -role hub
NODE:java -jar selenium-server-standalone-<version>.jar -role node -hub http://localhost:4444/grid/register
/*
* This assumes you have added MicrosoftWebDriver.exe to your System Path.
* For help on adding an exe to your System Path, please see:
* https://msdn.microsoft.com/en-us/library/office/ee537574(v=office.14).aspx
*/
"required capabilities = Capabilities [{}]" that you get as part of the error message. It is empty. Shouldn't it at least hold the browser name something like
'MicrosoftEdge'
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/6HBET9etuaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5717e5a6-c198-4c9d-b5eb-b293386a022a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
java -jar srv3.jar -role hub -hubConfig local-hub-config.json
{
"host": localhost,
"port": 4444,
"newSessionWaitTimeout": -1,
"servlets" : [],
"prioritizer": null,
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
"throwOnCapabilityNotPresent": true,
"nodePolling": 5000,
"cleanUpCycle": 5000,
"timeout": 300000,
"browserTimeout": 0,
"maxSession": 4,
"jettyMaxThreads":-1
}
java -jar "<path-to-folder>\srv3.jar" -role node -nodeConfig "<path-to-folder>\local-node-config.json"
{
"capabilities":
[
{
"browserName": "firefox",
"maxInstances": 5,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "chrome",
"maxInstances": 3,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "internet explorer",
"maxInstances": 3,
"seleniumProtocol": "WebDriver"
},
{
"browserName": "MicrosoftEdge",
"maxInstances": 3,
"seleniumProtocol": "WebDriver"
}
],
"proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 5,
"port": 5555,
"register": true,
"registerCycle": 5000,
"hub": "http://localhost:4444",
"nodeStatusCheckTimeout": 5000,
"nodePolling": 5000,
"role": "node",
"unregisterIfStillDownAfter": 60000,
"downPollingLimit": 2,
"debug": false,
"servlets" : [],
"withoutServlets": [],
"custom": {}
}
[TestMethod]
public void TestMethod1()
{
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities = DesiredCapabilities.Edge();
RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), capabilities, new TimeSpan(0, 0, 10));
driver.Manage().Window.Maximize();
driver.Navigate().GoToUrl("http://www.mail.com");
driver.Quit();
}
<Auto Generated Inline Image 1.png><Auto Generated Inline Image 2.png>
It worked perfectly fine for me what I executed the code (it's in C# obviously but that can barely be the difference that made it work for me)
[TestMethod]
public void TestMethod1()
{
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities = DesiredCapabilities.Edge();
RemoteWebDriver driver = new RemoteWebDriver(new Uri("http://localhost:4444/wd/hub"), capabilities, new TimeSpan(0, 0, 10));
driver.Manage().Window.Maximize();
driver.Navigate().GoToUrl("http://www.mail.com");
driver.Quit();
}
Sorry, can't think of anything else. Hope this helps in a way.
If you get to a solution for your problem can you please share it here?
P.S> I'm still concerned about your desired capabilities. When I tried to request capabilities that I couldn't match I got an error pretty similar to yours). Cheers.
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/6HBET9etuaY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/df539f03-253e-4d8a-9599-14864cddb5fe%40googlegroups.com.
<Auto Generated Inline Image 1.png><Auto Generated Inline Image 2.png>