title: Using FiddlerCore with Selenium to capture network traffic
body: <p>Can someone show me a working example of how this world be achieved? I'm specifically interested in cookie data.</p>
  
  <p>I've done the following, and not sure how to proceed next:</p>
  
  <pre><code>var sessions = new List&lt;Fiddler.Session&gt;();
  
  Fiddler.FiddlerApplication.AfterSessionComplete += delegate(Fiddler.Session oS)
  {
      Monitor.Enter(sessions);
      sessions.Add(oS);
      Monitor.Exit(sessions);
  };
  
  Fiddler.FiddlerApplication.Startup(8877, FiddlerCoreStartupFlags.Default);
  
  var driver = new OpenQA.Selenium.Firefox.FirefoxDriver();
  
  var selenium = new Selenium.WebDriverBackedSelenium(driver, 'http://www.test.com');
  
  selenium.Start();
  selenium.Open(urlRoot.ToString());
  selenium.WaitForPageToLoad("30000");
  selenium.Stop();
  </code></pre>