Hey All,
Been using WWW::Mechanize::Chrome for a while now to do some automation and while it never bothered me it would open a regular Chromium window + an Incognito window, and all my controls would then happen within the incognito window. I've now run into a scenario where the incognito window is causing an issue but for the life of me I can't figure out how to get it to stop.
Even with just a basic test constructor with "incognito => 0" it still opens. I've tried tons of combinations without success, I've even tried adding {"IncognitoModeAvailability": 1 } to the chromium config files to disable it completely, this just causes the script to error out.
Opening the browser manually does not cause incognito windows to open.
my $URL = shift || 'https://perlmonks.org';
my $mech = WWW::Mechanize::Chrome->new( headless => 0, incognito => 0,
+ separate_session => 1, launch_exe => '/usr/bin/chromium-browser' );
$mech->get($URL);
Hopefully I'm just missing something stupid which is usually the case.
Ubuntu 18.04 / Perl v5.26.1 / WWW::Mechanize::Chrome 0.58 / Chromium 83.0.4103.61
Any help is appreciated