after i filled a certain form, im trying to click this button
<input class="proceed" type="button" name="new_proceed" value="Create">
, when i tried
$mech->click_button(name=>"new_proceed");
it gives me an error telling me there’s no clickable object with this name. and when used
$mech->click_button(value=>"Create");
i get can’t call method “header” on an undefined value at C:/strawberry/perl/site/lib/WWW/Mechanize.pm line 2467.
So whats wrong? Thanks
Since it is of type
button, it doesn’t do anything in HTML (it is usually used as something to bind JavaScript to, which WWW::Mechanize doesn’t support).Look to something that supports JS such as WWW::Mechanize::Firefox instead.