use Log::Log4perl qw(:easy); use WWW::Mechanize::Chrome; Log::Log4perl->easy_init($ERROR); my $mech = WWW::Mechanize::Chrome->new( headless => 0, # start_url => 'https://grocery.walmart.com/orders', data_directory => '/home/rwk/chrome-session-for-walmart', incognito => 0, launch_exe => '/usr/bin/chromium', javascript => 1, launch_arg => [ "--remote-debugging-port=9222" ], tab => qr/Walmart Grocery/, ); my $txt = $mech->content; open($f, '>', '/tmp/out.html'); print $f $txt; close $f;