Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
org.openqa.selenium.WebDriverException: Unable to parse remote response: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /wd/hub/session. Reason:
<pre> Server Error</pre></p><h3>Caused by:</h3><pre>java.io.IOException: org.openqa.grid.common.exception.GridException: Cannot extract a capabilities from the request: {
&quot;desiredCapabilities&quot;: {
&quot;acceptInsecureCerts&quot;: true,
&quot;browserName&quot;: &quot;googlechrome&quot;,
&quot;version&quot;: &quot;65.0.3325.181&quot;,
&quot;platform&quot;: &quot;ANY&quot;
},
&quot;requiredCapabilities&quot;: {},
&quot;capabilities&quot;: {
&quot;desiredCapabilities&quot;: {
&quot;acceptInsecureCerts&quot;: true,
&quot;browserName&quot;: &quot;googlechrome&quot;,
&quot;version&quot;: &quot;65.0.3325.181&quot;,
&quot;platform&quot;: &quot;ANY&quot;
},
&quot;requiredCapabilities&quot;: {},
&quot;alwaysMatch&quot;: {
&quot;acceptInsecureCerts&quot;: true,
&quot;browserName&quot;: &quot;googlechrome&quot;
},
&quot;firstMatch&quot;: []
}
}
DesiredCapabilities cap = DesiredCapabilities.chrome()
cap.setBrowserName("googlechrome")
cap.setVersion('65.0.3325.181')
cap.setPlatform(Platform.ANY)
cap.setAcceptInsecureCerts(true)
driver = new RemoteWebDriver(new URL(Node), cap)
driver.manage().window().fullscreen()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.