title: How to enable-site-per-process flag using chromeoptions in webdriver c#
body: <p>In Chrome there is a Strict Site Isolation setting that can be manually enabled in chrome://flags/#enable-site-per-process page. I'm trying to enable this flag when testing Chrome using WebDriver C# bindings but it's not getting enabled.</p>
  
  <p>The switch is listed in <a href="https://peter.sh/experiments/chromium-command-line-switches/" rel="nofollow noreferrer">https://peter.sh/experiments/chromium-command-line-switches/</a> so I've tried to add it as an argument in ChromeOptions but this doesn't have any effect.</p>
  
  <pre><code>ChromeOptions options = new ChromeOptions();
  options.AddArgument("--site-per-process");
  IWebDriver driver = new ChromeDriver(@"c:\browserdrivers",options);
  driver.Navigate().GoToUrl("www.google.com");
  driver.Quit();
  </code></pre>
  
  <p>I've also tried setting it as a preference based on the settings listed in <a href="https://chromium.googlesource.com/chromium/src/+/master/chrome/common/pref_names.cc" rel="nofollow noreferrer">https://chromium.googlesource.com/chromium/src/+/master/chrome/common/pref_names.cc</a> </p>
  
  <pre><code>options.AddUserProfilePreference("site_isolation.site_per_processs", true);
  </code></pre>
  
  <p>but this didn't work either.</p>
  
  <p>Does anyone know how this can be turned on?</p>