/usr/bin/chromium --user-data-dir=/home/rwk/chrome-session-for-walmart https://grocery.walmart.com/orders #### use Log::Log4perl qw(:easy); use WWW::Mechanize::Chrome; Log::Log4perl->easy_init($ERROR); # Set priority of root logger to ERROR my $mech = WWW::Mechanize::Chrome->new( headless => 1, start_url => 'https://grocery.walmart.com/orders', data_directory => '/home/rwk/chrome-session-for-walmart', incognito => 0, launch_exe => '/usr/bin/chromium', ); $mech->allow(javascript => 1); my $txt = $mech->content; open($f, '>', '/tmp/out.html'); print $f $txt; close $f;