$mech->click_button(id => 'loginBtn');
The above should work, but you can check whether the correct element is used by inspecting it:
my $btn = $mech->xpath('//*[@id="loginBtn"]', single => 1 ); print $btn->get_attribute('outerHTML'); $mech->click( $btn );
In reply to Re^3: Can't Find Form with WWW::Mechanize::Chrome
by Corion
in thread Can't Find Form with WWW::Mechanize::Chrome
by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |