title: How to increase RemoteWebDriver's HTTP request timeout
body: <p>I am using selenium "selenium-server-standalone-3.141.59.jar" and started hub and node as shown below. Hub is running on a Windows PC and the Safari node is on a MacMini.</p>
  
  <pre><code>java -Xmx4000m -jar selenium-server-standalone-3.141.59.jar -host 192.168.160.116 -role hub -port 4444 -browserTimeout 300 -timeout 300
  
  sudo java -Xmx6000m -jar selenium-server-standalone-3.141.59.jar -role node -hub http://192.168.160.116:4444/grid/register -port 5555 -browser browserName=safari,version=12,platform=mac,acceptSslCerts=true,javascriptEnabled=true -host 192.168.160.72 -debug
  </code></pre>
  
  <p>This is the code for instantiating RemoteWebDriver. I tried using "             <code>options.AddAdditionalCapability(CapabilityType.Timeouts, Settings.PageTimeout.TotalSeconds);</code>", But this throws an exception saying "expected an object value for timeouts, but was 180", Then I passed a time span object, but no luck either. </p>
  
  <pre><code>case "Safari":
                      var options = new SafariOptions();
                      options.AddAdditionalCapability(CapabilityType.BrowserName, "safari");
                      options.AddAdditionalCapability(CapabilityType.PlatformName, "MAC");
                      options.AddAdditionalCapability(CapabilityType.Version, "12");
                      options.AddAdditionalCapability(CapabilityType.AcceptSslCertificates, true);
                      options.AddAdditionalCapability(CapabilityType.IsJavaScriptEnabled, true);
                      options.SetLoggingPreference(LogType.Browser, LogLevel.Debug);
                      options.SetLoggingPreference(LogType.Driver, LogLevel.Debug);
                      var driver = new RemoteWebDriver(new Uri(Settings.RemoteServerAddress), options);
                      driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(Settings.PageTimeout.TotalSeconds);
                      return driver;
  </code></pre>
  
  <p>Some of the tests fail with the below exception. Anyone come across this situation?</p>
  
  <pre><code>[20:55:15][Step 5/8] [ERROR] Name of my cool scenario - valid code: The HTTP request to the remote WebDriver server for URL http://192.168.160.116:4444/wd/hub/session timed out after 60 seconds. -&gt; The request was aborted: The operation has timed out.
  [20:55:15][Step 5/8]   OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://192.168.160.116:4444/wd/hub/session timed out after 60 seconds. ---&gt; System.Net.WebException: The request was aborted: The operation has timed out.
  [20:55:15][Step 5/8]      at System.Net.HttpWebRequest.GetResponse()
  [20:55:15][Step 5/8]      at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
  [20:55:15][Step 5/8]      --- End of inner exception stack trace ---
  [20:55:15][Step 5/8]      at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
  [20:55:15][Step 5/8]      at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
  [20:55:15][Step 5/8]      at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
  [20:55:15][Step 5/8]      at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
  [20:55:15][Step 5/8]      at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
  [20:55:15][Step 5/8]      at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(Uri remoteAddress, ICapabilities desiredCapabilities)
  [20:55:15][Step 5/8]      at Summatix.Automation.WebDriver.WebDriverFactory.DoCreate(String key)
  [20:55:15][Step 5/8]      at Summatix.Automation.WebDriver.WebDriverFactory.Create(String key)
  </code></pre>