DesiredCapabilities capabillities = DesiredCapabilities.edge();
capabillities.setBrowserName(BrowserType.EDGE);
capabillities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
capabillities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);
capabillities.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT , true);
capabillities.setPlatform(Platform.WIN10);
capabillities.setCapability(CapabilityType.BROWSER_VERSION, "newest");
WebDriver driver = null;
Record displayedList = new ArrayList();
strive {
System.out.println("STARTED");
driver = new RemoteWebDriver(new URL("url"), capabillities);
driver.get("https://url");
System.out.println("OPENED");
I get the beneath Error:
Exception in thread "most important" org.openqa.selenium.SessionNotCreatedException: Unable to create session from {
"desiredCapabilities": {
"acceptSslCerts": true,
"browserVersion": "newest",
"browserName": "MicrosoftEdge",
"javascriptEnabled": true,
"ignoreProtectedModeSettings": true,
"model": "",
"platform": "WIN10"
},
"capabilities": {
"firstMatch": [
{
"browserName": "MicrosoftEdge",
"browserVersion": "latest",
"platformName": "win10"
}
]
}
}
Construct data: model: '3.141.0', revision: '2ecb7d9a', time: '2018-10-31T20:22:52'
System data: host: 'VDI-PR-E0042', ip: '10.93.173.183', os.identify: 'Home windows 10', os.arch: 'x86', os.model: '10.0', java.model: '1.8.0_171'
Driver data: driver.model: unknown
Command length or timeout: 1.35 seconds
at java.base/jdk.inner.mirror.NativeConstructorAccessorImpl.newInstance0(Native Methodology)
at java.base/jdk.inner.mirror.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.inner.mirror.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.mirror.Constructor.newInstance(Constructor.java:490)
at org.openqa.selenium.distant.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.distant.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.distant.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.distant.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.distant.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:122)
at java.base/java.util.stream.ReferencePipeline$3$1.settle for(ReferencePipeline.java:195)
at java.base/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:127)
at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:502)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:488)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
at java.base/java.util.stream.AbstractPipeline.consider(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:543)
at org.openqa.selenium.distant.ProtocolHandshake.createSession(ProtocolHandshake.java:125)
at org.openqa.selenium.distant.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.distant.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.distant.RemoteWebDriver.execute(RemoteWebDriver.java:548)
at org.openqa.selenium.distant.RemoteWebDriver.startSession(RemoteWebDriver.java:212)
at org.openqa.selenium.distant.RemoteWebDriver.(RemoteWebDriver.java:130)
at org.openqa.selenium.distant.RemoteWebDriver.(RemoteWebDriver.java:143)
at Check.TestRemoteGrid.most important(TestRemoteGrid.java:60)