Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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

For ex: 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.

Thanks, Ramesh Jhajharia

share|improve this question
    
Why web driver, shouldn't you be using a network tool like Fiddler or Wireshark ? –  Phil Kirkham 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
add comment

1 Answer 1

up vote 4 down vote accepted

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

FiddlerCore

And one more alternative: BrowserMob Proxy

share|improve this answer
    
Thanks Dimitry. I did it using BrowserMob Proxy. –  Ramesh Jun 20 '12 at 11:43
    
Thanks Dmitry.I used BrowserMob Proxy and its working fine. These people are very helpful. –  Ramesh Sep 5 '13 at 5:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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