From: Peter Szinek Date: 2007-06-11T17:08:15+09:00 Subject: Re: Having problem using Mechanize to log into Google Account Kevin, > The values of the Email and Passwd fields remain empty. So it appears > to me that the code fails to login. What more should I do? Please > help! Mechanize can not handle Javascript, so it won't work this way. You have two options here: 1) Scrape the non-JS page - check this article: http://schf.uc.org/articles/2007/02/14/scraping-gmail-with-mechanize-and-hpricot 2) Use Watir (FireWatir if you are not on win32) which can handle JavaScript. btw, posting mechanize related questions to the mechanize list (mechanize-users@rubyforge.org) can yield better response time/quality. HTH, Peter _ http://www.rubyrailways.com :: Ruby and Web2.0 blog http://scrubyt.org :: Ruby web scraping framework http://rubykitchensink.ca/ :: The indexed archive of all things Ruby.