$mech->click_button(id => 'loginBtn');
Untested, should the id be prefixed with #? 'A selector prefixed with '#' must match the id attribute of the input'.
$mech->click_button(id => '#loginBtn');
In reply to Re^3: Can't Find Form with WWW::Mechanize::Chrome
by marto
in thread Can't Find Form with WWW::Mechanize::Chrome
by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |