title: How do I increase the timeout for obtaining a remote web driver from Selenium Grid?
body: <p>Could I know how could I increase the timeout of obtaining the webdriver from the selenium-grid?</p>
  <p>I have setup selenium-grid and 5 pods of selenium-node-firefox on OKD (k8s).</p>
  <p>selenium-grid:
  JAVA_OPTS=-Xmx4g</p>
  <p>selenium-node-firefox:
  JAVA_OPTS=-Xmx512m
  SE_NODE_MAX_SESSIONS=1</p>
  <p>When I run the following in Java</p>
  <pre><code>//Adding the desired host and port for the http, ssl, and ftp Proxy Servers respectively
  org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
  proxy.setHttpProxy(proxyAddress);
  proxy.setSslProxy(proxyAddress);
  proxy.setSslProxy(proxyAddress);
  proxy.setFtpProxy(proxyAddress);
  FirefoxOptions options = new FirefoxOptions();
  options.setCapability(&quot;proxy&quot;, proxy);
  
  WebDriver driver = new RemoteWebDriver(new URL(seleniumRemoteURL), firefoxOptions);
  </code></pre>
  <p>I gives me this error sometimes, which means it takes a bit longer for the grid to return a driver for me. I have checked the logs of both selenium-grid and selenium-node-firefox that the operations starts correctly a couple of seconds after I requested web drivers.</p>
  <pre><code>org.openqa.selenium.json.JsonException: Unable to determine type from: &lt;. Last 1 characters read: &lt;
  Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z'
  System info: host: 'CHRIS-HOMEPC', ip: '192.168.1.19', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_281'
  Driver info: driver.version: RemoteWebDriver
      at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:121)
      at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:137)
      at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:123)
      at org.openqa.selenium.json.Json.toType(Json.java:60)
      at org.openqa.selenium.json.Json.toType(Json.java:50)
      at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:87)
      at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:548)
      at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:276)
      at com.skywidetech.ticrawler.model.ProductHuntJob.openDetailPage(ProductHuntJob.java:340)
      at com.skywidetech.ticrawler.model.ProductHuntJob.executeInternal(ProductHuntJob.java:233)
      at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
  </code></pre>