Watir's purpose is the drive the browser. It does not have access to what's going on at the http level in order for the browser to build the page.
Potentially webdriver itself might have access to that info, but you'd have to ask the webdriver people how to get at it. (you can access the driver object inside a watir script, so if you know what to ask for it's not too hard) Generally the best means I've seen of getting this information is to use some kind of proxy to view the HTTP traffic itself. e.g. on Windows you can use Fiddler2 I know there are similar tools for Mac and *nix systems but I'm not terribly familiar with them. On Friday, June 15, 2012 9:56:27 AM UTC-7, Scott Wallace wrote: > > HI, > > Can anyone tell me how to get a list of urls that Mozilla will issue a GET > to when rendering a page? I currently get this list manually using > firebug's net option but am trying to automate with watir. > > I cant just rely on img tags etc as some of them are dynamically created > by js etc. > > So for a real world example using a youtube video page how could I get a > list of all the content the page loaded? (given that it will change based > on user location etc) Will the URLs the flash objects access also be > visible? > > Thanks, > > Scott > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
