lpowers has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
While using the $mech->click function in WWW::Mechanize::Chrome, I frequently see the following warning:
This error is generated from $mech->click lines like this:Use of uninitialized value in string eq at /usr/local/share/perl5/WWW/ +Mechanize/Chrome.pm line 1279.
or this:$mech->click( { selector => '#dcrd-31 > div > div > div:nth-child(1)', + single => 1 } );
Most of the time this line works fine:$mech->click( { xpath => '//*[@id="dcrd-31"]/div/div/div[1]', single = +> 1 } );
But occasionally, I get the "Use of uninitialized value..." warning from it as well (sometimes 2 successive warnings).$mech->click( { selector => '#signIn', single => 1 } );
2018-09-05 Athanasius added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize::Chrome ->click giving warning
by Corion (Patriarch) on Aug 30, 2018 at 07:37 UTC | |
by lpowers (Acolyte) on Aug 30, 2018 at 15:42 UTC |