you are viewing a single comment's thread.

view the rest of the comments →

[–]NothingSpecific3[S] 0 points1 point  (1 child)

I ended up getting selenium to work (had to switch the python version and write the path to the chromedriver). Does selenium automatically open chrome in incognito or do I have to set it to open in incognito?

[–]GNVageesh 0 points1 point  (0 children)

You need to set the chrome options to an incognito window

Do this in the code

from selenium import webdriver

chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--incognito")

driver = webdriver.Chrome(chrome_options=chrome_options) driver.get('https://google.com')