run chrome in incognito mode for better cookies handling
This commit is contained in:
parent
165a6150f8
commit
248b89f039
1
main.py
1
main.py
@ -153,6 +153,7 @@ class FileManager:
|
|||||||
def init_browser() -> webdriver.Chrome:
|
def init_browser() -> webdriver.Chrome:
|
||||||
try:
|
try:
|
||||||
options = chromeBrowserOptions()
|
options = chromeBrowserOptions()
|
||||||
|
options.add_argument("--incognito") # Open Chrome in incognito mode
|
||||||
service = ChromeService(ChromeDriverManager().install())
|
service = ChromeService(ChromeDriverManager().install())
|
||||||
return webdriver.Chrome(service=service, options=options)
|
return webdriver.Chrome(service=service, options=options)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user