The code for it is
And I tried
# the get link exists, but excluded in the sample
$mech->submit_form(
form_name => 'addFriend',
submit => 'Add To Friends'
);
But it resulted in "no clickable button..". The form name is right and there are 2 buttons on this form. There's this one that I NEED to click, and another one (code below) that I need to ignore
Can someone please help me with this one?
after install and reading the perldoc for WWW::Mechanize::Shell and use the shell to navigate the form, inspect its structure and find a way of submitting that button.
get URL forms form FORMNAME click NAME or click "" script (to obtain the results in an executable form for importation into your script)-- Hugh
perlmonks.org content © perlmonks.org and Anonymous Monk, hesco
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03