http://qs321.pair.com?node_id=607375


in reply to Re^2: LWP and Javascript
in thread LWP and Javascript

WWW::Mechanize is a subclass of LWP::UserAgent, so more or less anything you can do with LWP::UA you can do with WWW::Mechanize. Mechanize is just easier to use when automating click-trails (start at link such-and-such, click link named "bla bla", fill in form field "thingy", submit - etc)

The *::Mechanize::* modules linked in my post above mimic and extend WWW::Mechanize's behaviour but are probably not 100% API compatible - YMMV.

Replies are listed 'Best First'.
Re^4: LWP and Javascript
by ForgotPasswordAgain (Priest) on Mar 30, 2007 at 15:40 UTC
    I ported Mozilla::Mechanize from Win32::IE::Mechanize, which was in turn ported from WWW::Mechanize. You're right they're not 100% compatible, but mostly they are. I've meant to get a new release out of Mozilla::DOM and Mozilla::Mechanize for a long time, especially since Boris's Mozilla::* modules came out, but I have a little problem where all Gtk2::MozEmbed-based applications segfault for me on Ubuntu, so I'm not able to confirm that things work. (FWIW, I have seen https://launchpad.net/ubuntu/+source/firefox/+bug/26436 and I have set LD_LIBRARY_PATH and /etc/ld.so.conf and done /sbin/ldconfig, but things still segfault for me.)