title: How to Detach Chrome Browser from Chrome Driver (Selenium Web Driver C#)
body: <p>I want to use Selenium Web Driver in VS 2010 C# to open a Chrome browser, navigate to some web page and <strong>then close the driver but keep the browser open</strong>. I realize that I will have to manually close the browser afterwards and I'm okay with that. </p>
  
  <p>So far I have:</p>
  
  <pre><code>DriverService service = ChromeDriverService.CreateDefaultService();
  ChromeOptions options = new ChromeOptions();
  options.AddAdditionalCapability("chrome.detach",true);
  m_driver = new ChromeDriver(service, options, TimeSpan.FromMilliseconds(1000));
  [m_driver does stuff like navigate page, double click stuff, etc]
  [last line: try to close driver but not browser]
  </code></pre>
  
  <p>I have tried all the following as the last line</p>
  
  <pre><code>m_driver.Dispose(); // closes both browser and driver
  
  m_driver.Close(); //closes just the browser and not the driver
  
  m_driver.Quit(); // closes both browser and driver
  
  service.Dispose(); // closes both browser and driver
  </code></pre>
  
  <p>Any ideas?</p>