title: C# multiple connect to Selenium grid or speed up parallel testing in Selenium grid
body: <p>I have some question about the remoteweb driver in Parallel testing.</p>
  
  <p>Because i have to Parallel to speed up the Selenium grid to open the page,</p>
  
  <p>1.When i use the code that like this . It will Parallel to connect the Grid,but </p>
  
  <p>every time  it will reopen the webdriver again.It will cause some delay. <strong>How could i using Parallel to connect  Selenium grid but no need to restart webedriver.</strong>  </p>
  
  <p><strong>2.How could i check RemoteWebDriver resource is free so that my thread could 
  continue using it.</strong></p>
  
  <pre><code>Parallel.ForEach(PartThreading, new ParallelOptions { MaxDegreeOfParallelism = 10 }, (keyValue) =&gt;
  {
  
      var _driver = new RemoteWebDriver(_options.RemoteHubUrl, DesiredCapabilities.Chrome()); // instead of this url you can put the url of your remote hub
  
      _driver.Navigate().GoToUrl(keyValue.Key);
  
      SaveHtmlAndScreenShot(keyValue.Key, _driver);
  
      GetUnvisitedLinks(_driver, keyValue.Key);
      _driver.Quit();
  
  });
  </code></pre>
  
  <p>Thanks</p>