in reply to Re: WWW:Mechanize::Chrome cookies
in thread WWW:Mechanize::Chrome cookies
Any additional help is greatly appreciated!
My code now:
use Log::Log4perl qw(:easy); use WWW::Mechanize::Chrome; Log::Log4perl->easy_init($ERROR); # Set priority of root logger to ER +ROR my $mech = WWW::Mechanize::Chrome->new( headless => 0, data_directory => '/home/rwk/chrome-session-for-walmart', incognito => 0, ); $mech->get('https://grocery.walmart.com'); my $png = $mech->content_as_png();
P.S. How do I select between the two open chrome windows? I can't find it anywhere in the docs...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: WWW:Mechanize::Chrome cookies
by Corion (Patriarch) on May 24, 2020 at 17:34 UTC |