Hacker News new | ask | show | jobs
by kunley 6038 days ago
Mechanize for Perl & Ruby is quite cool.

However, it's not able to execute JavaScript. The only lib I found which does so with a reasonable subset of JS is HttpUnit, in Java. Though it has kind of ugly interface IMO, I use it with a success. Doing it from a Clojure REPL makes it quite handy tool for web scripting.

3 comments

To use Javascript then try the CPAN module WWW::Selenium (http://search.cpan.org/dist/Test-WWW-Selenium/).
Yeah I considered it but Selenium uses Firefox, does it? And I needed a self-contained script without such dependencies.
No, Selenium works with all major browsers.
I used Selenium or WebDriver for that. Not bad.
Also available to JRuby as Celerity, which rocks.
Looks cool, thanks!