in reply to Difficulties with WWW::Mechanize ->click_button() difficulties
Also see WWW::Mechanize::Firefox, which automates Firefox in a way very much like WWW::Mechanize, except that Firefox handles frames, cookies and Javascript for you.