nysus has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use the synchronize method like so:
$mech->get('http://example.com/wp-login.php'); $mech->submit_form( with_fields => {log => 'admin', pwd => 'password'} +); $mech->synchronize( 'DOMConentLoaded', sub {print Dumper($self->title( +)); }); exit;
The title of the newly loaded page prints but then the script just hangs. It never exits. What am I missing?
$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate";
$nysus = $PM . ' ' . $MCF;
Click here if you love Perl Monks
|
|---|