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.
Hopefully I'm just missing something stupid which is usually the case.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);
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |