in reply to Re: some doubts on my first steps with WWW::Mechanize::Chrome
in thread some doubts on my first steps with WWW::Mechanize::Chrome

Thanks Corion,

> I think the non-incognito mode is somewhat broken if you launch your own window.

i miss the sense of this: I launch manually or I launch programatically ? This has to be combined with the following answer? I have to launch a new instance of chromium/chrome alone (as the only instance of the program) with --remote-debugging-port=9222 and then I can take the control of an already open tab (open manually) and I can also have non incognito mode off?

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^3: some doubts on my first steps with WWW::Mechanize::Chrome
by Corion (Patriarch) on May 04, 2020 at 08:10 UTC

    You have to manually launch "your" (the first) Chrome instance with --remote-debugging-port=922.

    Afterwards, if you launch a WWW::Mechanize::Chrome program, you tell it to connect to an existing tab and it should connect to the already running Chrome instance which has your cookies etc.