in reply to Re^2: LWP hit button to continue
in thread LWP hit button to continue
Quick and dirty example using WWW::Mechanize to get a fake page, click a button, print the title of the next page:
#!/usr/bin/perl use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->get('https://derpderpderp.com'); # fake URL $mech->click_button( number => 2 ) # click the second button on fake p +age #do whatever you want with the next page, e.g. print the title print $mech->title;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: LWP hit button to continue
by Anonymous Monk on Mar 23, 2021 at 16:18 UTC | |
by marto (Cardinal) on Mar 23, 2021 at 16:33 UTC | |
|
Re^4: LWP hit button to continue
by Anonymous Monk on Mar 23, 2021 at 18:15 UTC | |
by hippo (Archbishop) on Mar 23, 2021 at 18:56 UTC | |
|
Re^4: LWP hit button to continue
by Anonymous Monk on Mar 23, 2021 at 16:41 UTC | |
by marto (Cardinal) on Mar 23, 2021 at 16:49 UTC | |
|
Re^4: LWP hit button to continue
by Anonymous Monk on Mar 23, 2021 at 17:02 UTC |