Help for this page

Select Code to Download


  1. or download this
    my @links = $mech->find_all_links(url_regex => 'asdf.html');
    
    foreach my $link (@links) {
        print $link->attrs()->{onclick};
    }
    
  2. or download this
    my @links = $mech->find_all_links_dom(url_regex => 'asdf.html');
    
    foreach my $link (@links) {
        print $link->{onclick};
    }
    
  3. or download this
    my @links = $mech->find_all_links_dom(url_regex => 'asdf.html');
    
    foreach my $link (@links) {
        print $link->__attr('onclick');
    }
    
  4. or download this
    my @links = $mech->find_all_links_dom(url_regex => 'asdf.html');
    
    ...
        print Dumper($link->__keys);
        print Dumper(keys %$link);
    }
    
  5. or download this
    MozRepl::RemoteObject: TypeError: obj.hasOwnProperty is not a function
    + at /usr/local/share/perl/5.10.1/MozRepl/RemoteObject.pm line 1509