简体   繁体   中英

Selenium, how not to open incognito mode when I execute

When I execute

driver = webdriver.Chrome('/Users/sunghunkwak/PythonTesting/chromedriver')
driver.get("https://gmail.com")

it always opens incognito mode (secrete, private mode). But, I want to use the original Chrome. How can I do it?

Thank you.

Try to check if you have added some arguments into the Chrome options, ie:

chrome_options.add_argument("--incognito")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM