Re: [wtr-general] Re: Saving Javascript Files

2010-05-07 Thread Brendan Grainger
Hi Ethan, Thanks for the response on this. I ended up writing a simple proxy which I point watir at and saves *everything* down as it goes. It's been working out great. Thanks Brendan On Apr 14, 2010, at 5:27 PM, Ethan wrote: It looks like you have the watir part down. It's easy to

Re: [wtr-general] Re: Saving Javascript Files

2010-04-14 Thread Brendan Grainger
Hi Tiffany, I realize water is a ruby library that interacts with web browsers. I also realize it's easy to enumerate all the linked script files with something like: jscripts = ie.document.getElementsTagName(script) jscripts.each do |js| puts Javascript file is located at:

Re: [wtr-general] Re: Saving Javascript Files

2010-04-14 Thread Ethan
It looks like you have the watir part down. It's easy to download data from a URL in ruby, though not through watir. Check the Net::HTTP library. http://www.ruby-doc.org/core/classes/Net/HTTP.html If the script's src attribute is set to a relative path then you'll have to combine it with the