SPUG: Beyond WWW::Mechanize (i.e. AJAX)
seaperldev at gmail.com
Fri Feb 24 11:46:00 PST 2012
WWW::Mechanize::Shell as it lets you interact directly.
If that doesn't work I'd look into Expect as a fall back.
On Fri, Feb 24, 2012 at 11:38 AM, <michaelrwolf at att.net> wrote:
> I've been a very satisfied user of Mech for years (Thanks Andy - it's a
> great example of good interface design, and thus a highly usable module)...
> but alas, as my web scraping code evolved to 'button-pushing-mode' it turns
> out that the submit button does *not* submit a HTTP request, but rather
> invokes an AJAX-ish operation
> <form onsubmit='A.B.C.yada_yada(this); return false;" ...>
> <input .../>
> <input .../>
> <input type="submit" value="1-click yada yada"/>
> I *can* fill in the form and click() the button, but since Mech doesn't do
> What's a Mech fan to do?
> * For real in production?
> * For mock in testing?
> Michael R. Wolf
> ____MichaelRWolf at att.net
> ________All mammals learn by playing.
> Seattle Perl Users Group Mailing List
> POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
> MEETINGS: 3rd Tuesdays
> WEB PAGE: http://seattleperl.org/
Sr. Software Engineer - Perl/Ruby on Rails/PHP
- There are only 10 types of people in the world: those that understand
binary and those that don’t. -
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the spug-list