Proxies Auth in Incognito Mode #98
-
So, i'm using you code , and cant use incognito mode when i set proxy with auth, only without auth. profile = profiles.Windows() # or .Android()
profile = \
{
"options": {
"sandbox": True,
#"headless": True,
#"load_images": True,
"incognito": True,
#"touch": True,
#"app": False,
#"gpu": False,
#"proxy": "http://"+ ip_aleatorio +"" # note: auth not supported,
#"extension_paths": ["path/to/extension_1", ...], # directory, .crx or .zip
#"args": ["--my-arg1", ...],
#"capabilities": {"cap_1":"val_1", "cap_2":"val_2"},
#"experimental_options":{"option1":"value1", "option2":"value2"},
#"adb": False, # run on harware device over ADB
#"adb_package": "com.android.chrome",
#"use_running_app": True
},
"cdp": {
"useragent": {
"userAgent": user_agent,
}
},
"proxy":{
"proxy":"http://"+ proxy_username +":"+ proxy_password +"@"+ proxy_ip +":"+ proxy_port +""
}
} when incognito is true, proxy with auth does not work, when is false , works. Is there something do do? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This occurs because it internally uses an extension, and those can only be used in incognito with an You might be able to support it with driver.get("chrome://extensions")
# Find the extension that you want to use in Incognito mode.
# Click Details.
# Turn on Allow in Incognito. or simply specify |
Beta Was this translation helpful? Give feedback.
-
Closing as it seems to be resolved |
Beta Was this translation helpful? Give feedback.
This occurs because it internally uses an extension, and those can only be used in incognito with an
user-action
or force-install policy (enterprise). See (https://support.google.com/chrome/a/answer/13130396?hl=en)You might be able to support it with
or simply specify
seleniumwire_options=True
which will make it useseleniumwire
instead of an extension