Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    sleep 1; # give the page more time
    $mech->click({xpath => '//*[@id="submit"]'});
    
  2. or download this
    my $retries = 10;
    while ($retries-- and ! $mech->is_visible( xpath => '//*[@id="submit"]
    +' )) {
          sleep 1;
    };
    die "Timeout" unless $retries;