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


In reply to WWW::Mechanize::Chrome Created Using incognito windows by default by shadowclaw

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.