Replies: 3 comments 9 replies
-
|
I created this ticket for overseeing the issue: #4053. It's related to changes in Chrome 142. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@mdmintz - seleniuimbase stopped authenticating proxy credentials for me, is this related to this? |
Beta Was this translation helpful? Give feedback.
5 replies
-
from typing import Literal
from seleniumbase import Driver
from seleniumbase.core import proxy_helper
def create_driver(
browser: Literal["chrome", "firefox"] = "chrome",
headless: bool = False,
proxy: bool = False,
selenium_wire: bool = False,
):
if proxy:
proxy_helper.create_proxy_ext(proxy_string="pr.oxylabs.io:7777", proxy_user="user", proxy_pass="password")
driver = Driver(
browser=browser,
headless=headless,
# uc_cdp=True,
# uc=True,
incognito=True,
ad_block_on=True,
do_not_track=True,
# undetectable=True,
# uc_cdp_events=True,
use_wire=selenium_wire,
extension_dir="downloaded_files/proxy",
)
driver.maximize_window()
return driverWhen I use the driver like this, the proxy and ad_block works. But if I uncomment any of those parameters (uc_cdp, uc, undetectable, uc_cdp_events) they dont work. Am I doing anything wrong? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Previously I used the following codes:
options.add_argument('--load-extension=')
options.add_argument('--disable-features=DisableLoadExtensionCommandLineSwitch')
And this worked, but now it doesn't work anymore in Selenium, not even using SeleniumBase.
Existis any solutions?
Beta Was this translation helpful? Give feedback.
All reactions