From: Chris McMahon Date: 2006-10-24T08:55:06+09:00 Subject: Re: downloading web page as HTML accessed through WATIR lrlebron@gmail.com wrote: > ie.html is what you are looking for > > aFile = File.new("yahoo.htm" , "w") > aFile << ie.html > aFile.close > > and if you want to view the file then > > ie.goto("yahoo.htm") Be very very careful here, make sure you understand what you are doing. Watir does *not* see the HTML on the page-- Watir only sees the DOM in Internet Explorer. If the HTML is missing a "/p>", for instance, Watir can't see it. The #html method will *always* yield valid HTML, because it it interpreting the DOM, regardless of how awful the original HTML may or may not be.