shadowclaw has asked for the wisdom of the Perl Monks concerning the following question:
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize::Chrome Created Using incognito windows by default
by marto (Cardinal) on Jul 17, 2020 at 07:37 UTC | |
|
Re: WWW::Mechanize::Chrome Created Using incognito windows by default
by bliako (Abbot) on Jul 17, 2020 at 10:46 UTC | |
by shadowclaw (Novice) on Jul 17, 2020 at 14:53 UTC | |
|
Re: WWW::Mechanize::Chrome Created Using incognito windows by default
by thomas895 (Deacon) on Jul 17, 2020 at 03:56 UTC | |
by shadowclaw (Novice) on Jul 17, 2020 at 14:55 UTC |