I'm doing some screenscraping. Trying to submit a form using the HTML::Form->click method. The only problem is: the button doesn't have a name... only an id. I'm unable to get the button using:
my $login;
foreach (HTML::Form->parse($self->{resp})) {
#if ($_->find_input('btnLogin')) {
print Dumper($_);
if ($_->find_input('Login', 'button')) {
$login = $_;
last;
}
}
die $! if not $login;
This is what I get by doing
print Dumper($_);
{
'/' => '/',
'value_name' => '',
'tabindex' => '4',
'value' => 'Login',
'class' => 'login_button butto
+n',
'id' => 'btnLogin',
'type' => 'button'
},
Can someone help? Thanks.