Opening a new tab in the existing Brave session with Selenium and Python

60 views Asked by At

I'm trying to opening a new tab using Selenium in an existing Brave browser session (so to be able to leverage on some of the cookies previously accepted when normal navigation was carried).

No matter which combination of flags I use, the result is always a new session within the VSCode instance where my code is getting debugged. I've tried the same with Chrome, but again a new window session is opened with the informative bar suggesting the browser is running via an automated testing platform.

Is there any specific flag/process to attach to an existing session? The .add_argument('--remote-debugging-port=9222') that is encountered in several post doesn't seem to do the trick.

0

There are 0 answers