run chrome in incognito mode for better cookies handling

This commit is contained in:
50sotero 2024-09-02 10:17:45 -03:00
parent 165a6150f8
commit 248b89f039

View File

@ -153,6 +153,7 @@ class FileManager:
def init_browser() -> webdriver.Chrome:
try:
options = chromeBrowserOptions()
options.add_argument("--incognito") # Open Chrome in incognito mode
service = ChromeService(ChromeDriverManager().install())
return webdriver.Chrome(service=service, options=options)
except Exception as e: