Skip to content

Incognito mode not working when Proxy set #2336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
antooro opened this issue Dec 4, 2023 · 3 comments
Closed

Incognito mode not working when Proxy set #2336

antooro opened this issue Dec 4, 2023 · 3 comments
Labels
external Outside SeleniumBase's scope. / Ask somewhere else. UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode

Comments

@antooro
Copy link

antooro commented Dec 4, 2023

Incognito mode not enabled when proxy is set (Proxy with auth)

driver = Driver(uc=True, incognito=True, proxy=user:pwd@ip:port)
driver = Driver(uc=True, incognito=True)

image

@mdmintz
Copy link
Member

mdmintz commented Dec 4, 2023

As mentioned in https://support.google.com/chrome_webstore/answer/2664769?hl=en -->

“Important: You can't add extensions when you browse in Incognito mode or as a guest.”

Proxy with auth requires the use of a Chrome extension to configure proxy settings. When you set SeleniumBase to use both an extension and incognito mode, it prioritizes the extension.

@mdmintz mdmintz added external Outside SeleniumBase's scope. / Ask somewhere else. UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode labels Dec 4, 2023
@mdmintz mdmintz closed this as completed Dec 4, 2023
@ale-romeo
Copy link

Is there any alternatives to use both incognito mode and proxies? Is it possible to simulate incognito mode just deleting all cookies after a session?

@mdmintz
Copy link
Member

mdmintz commented Dec 1, 2024

There’s delete_all_cookies() if you just want to delete cookies during a session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Outside SeleniumBase's scope. / Ask somewhere else. UC Mode / CDP Mode Undetected Chromedriver Mode / CDP Mode
Projects
None yet
Development

No branches or pull requests

3 participants