WWW::Mechanize problem with button
Anonymous Monk
created: 2006-06-03 13:22:07
I am having problem getting WWW::Mechanize to work on a button. This button has no name, which is my problem I am guessing.

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?
Re: WWW::Mechanize problem with button
created: 2006-06-03 14:06:39
Try: perl -MWWW::Mechanize::Shell -e"shell"

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

if( $lal && $lol ) { $life++; }

perlmonks.org content © perlmonks.org and Anonymous Monk, hesco

prlmnks.org © 2006 edmund von der burg (eccles & toad)

v 0.03