Possible Duplicate:
Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver?

I'm using Selenium2/C# to run automated tests of a web app. I need to test the HTTP requests sent with each interaction with the UI. I use Charles to manually view the requests but how can I automate those tests? I'm not a very experienced programmer so I'm not sure - is there a way to do this just using C# to get the HTTP requests that are sent as my Selenium tests are running, or do I need some additional tool/library etc.?

I've looked at the Webdriver documentation and can't see anything there.

  • Thanks. I did search but didn't spot that question. I'll take a look and see if it helps. – SteveCZ Mar 27 '12 at 14:25
  • 1
    I've finally had time to try this and it worked. Also I found a very useful .Net library for working with Selenium and BrowserMob proxy by Adrian Hills and David Burns here: AdaTheDev – SteveCZ Apr 11 '12 at 13:57