I wants to read all the requests and responses made and get by the browser on navigating on a page.

For example: If I navigate to http://www.yahoo.com then we observe that browser is making a lots of GET and post requests. For the purpose of image loading, content loading and to display the Ads (Advertisement).

I am using selenium web driver and C#.

Can you please help me how can I get all the requests (get/post) and responses?

  • Why web driver, shouldn't you be using a network tool like Fiddler or Wireshark ? Jun 18 '12 at 11:47
  • HI Phil.......thanks ......I got my answer........... The best way to accomplish this is to use some sort of scriptable proxy. One such proxy is the BrowserMob proxy, and there's even a .NET wrapper for it. This would allow you to gather information that is outside the scope of WebDriver, such as the raw HTTP requests that you are asking for. ........I got this answer from one of friend on Stack Overflow.
    – Ramesh
    Jun 18 '12 at 12:31

I haven't used it, but possible it may be helpfull for you:


And one more alternative: BrowserMob Proxy

  • Thanks Dmitry.I used BrowserMob Proxy and its working fine. These people are very helpful.
    – Ramesh
    Sep 5 '13 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.