in reply to Re^2: Can't Find Form with WWW::Mechanize::Chrome
in thread Can't Find Form with WWW::Mechanize::Chrome
$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 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can't Find Form with WWW::Mechanize::Chrome
by Anonymous Monk on May 13, 2020 at 01:56 UTC | |
by Corion (Patriarch) on May 13, 2020 at 06:15 UTC | |
by xiaoyafeng (Deacon) on May 13, 2020 at 07:12 UTC |