Skip to content

Instantly share code, notes, and snippets.

@rnemeth1980
Created November 2, 2017 16:26
Show Gist options
  • Select an option

  • Save rnemeth1980/75e4885a7bb8e03fb19de0727aa9ebb0 to your computer and use it in GitHub Desktop.

Select an option

Save rnemeth1980/75e4885a7bb8e03fb19de0727aa9ebb0 to your computer and use it in GitHub Desktop.
Caused by:
org.openqa.selenium.WebDriverException: java.util.ArrayList cannot be cast to java.lang.String
Command duration or timeout: 3.00 seconds
Caused by:
org.openqa.selenium.WebDriverException: java.util.ArrayList cannot be cast to java.lang.String
Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z'
System info: host: 'xxx', ip: 'xxx', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_121'
Driver info: driver.version: unknown
using this code:
JsonObject json = new JsonObject();
json.addProperty("proxyType", "MANUAL");
json.addProperty("httpProxy", PROXY);
json.addProperty("sslProxy", PROXY);
JsonArray jArray = new JsonArray();
jArray.add("127.0.0.1");
jArray.add("localhost");
jArray.add("selenium");
jArray.add(".bechtle.de");
jArray.add(".bechtle.net");
json.add("noProxy", jArray);
caps.setCapability(CapabilityType.PROXY, json);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment