Skip to content

Instantly share code, notes, and snippets.

@brylor
Created April 2, 2018 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brylor/b306652bae9848e9ba08d86747b40d20 to your computer and use it in GitHub Desktop.
Save brylor/b306652bae9848e9ba08d86747b40d20 to your computer and use it in GitHub Desktop.
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