From: Adam Akhtar Date: 2008-09-14T22:30:42+09:00 Subject: Re: unit testing offline with mechanize thanks philip for the reply. Im new to ruby and havnt experimented with rails yet etc though i think i understand what you mean. The reason why i want mechanize to fetch the offline page rather than say reading it in as a string via IO.read("offlinepage.htm") is because in teh past ive noticed that the html code in a page saved from firefox is sligthly different from that say of open-uri due to the fact that firefox cleans up dodgy html (to an extent). this is also true with firebug - what it shows in its console may not actually be present in the actual html downloaded with open-uri. I dont know if this is the case with mechanize. As i said im new to ruby and web programming so i really dont know how to work round these differences apart from just using one tool to grab the pages and then open them. Am i wrong on this? Id really like to know how people get round this problem. -- Posted via http://www.ruby-forum.com/.