From: Brian Cowdery Date: 2006-08-09T07:37:10+09:00 Subject: Re: downloading web pages in watir michael wrote: > could anybody tell me how to download web pages accessed through > watir?? > > thanks > > michael While there isn't any methods in Watir to directly download a webpage to a file, you can get the HTML content yourself and do your own file writing. for example; ie = Watir::IE.new ie.goto('www.google.ca') File.open('google.html', "wb") { |f| f << '' f << ie.html f << '' } Note that the Watir.ie.html method returns the document.body, which does not include the opening and closing tags - so you'll need to include them in the file writing block. -- Posted via http://www.ruby-forum.com/.