Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SeleniumBase and Selenium are no longer loading the extensions.#4052

AllanFnds started this conversation inGeneral
Discussion options

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?

You must be logged in to vote

Replies: 3 comments 9 replies

Comment options

I created this ticket for overseeing the issue:#4053. It's related to changes in Chrome 142.

You must be logged in to vote
0 replies
Comment options

@mdmintz - seleniuimbase stopped authenticating proxy credentials for me, is this related to this?

You must be logged in to vote
5 replies
@mdmintz
Comment options

Yes, related to a Chrome 142 change. I'm working on the fix. Expect a new release soon.

@alexander01202
Comment options

Still no fix?

@mdmintz
Comment options

The proxy auth fix was already rolled out. Now auth happens when activating CDP Mode if you’re using UC Mode. Upgrade to a newer version of SeleniumBase if you experience any issues with proxy auth.

@alex4845
Comment options

image

with SB(uc=True,
proxy=proxy,
) as sb:
# url = "https://pixelscan.net/fingerprint-check"
url = "https://demo.fingerprint.com/playground"
timezone = get_timezone(proxy)
print(timezone)
sb.activate_cdp_mode(url,
# tzone=timezone
)
And pixelscan doesn't work either.

@mdmintz
Comment options

No issues with Pixelscan and proxy auth: (Bot not detected)

fromseleniumbaseimportSBwithSB(uc=True,test=True,proxy="USER:PASS@IP:PORT")assb:url="https://demo.fingerprint.com/playground"sb.activate_cdp_mode(url)sb.sleep(1)sb.cdp.highlight('a[href*="browser-bot-detection"]')bot_row_selector='table:contains("Bot") tr:nth-of-type(3)'print(sb.get_text(bot_row_selector))sb.assert_text("Bot Not detected",bot_row_selector)sb.cdp.highlight(bot_row_selector)sb.sleep(2)
Screenshot 2025-11-24 at 8 18 37 PM
Comment options

fromtypingimportLiteralfromseleniumbaseimportDriverfromseleniumbase.coreimportproxy_helperdefcreate_driver(browser:Literal["chrome","firefox"]="chrome",headless:bool=False,proxy:bool=False,selenium_wire:bool=False,):ifproxy: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()returndriver

When 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?

You must be logged in to vote
4 replies
@mdmintz
Comment options

When using UC Mode, you have to callactivate_cdp_mode(url) for proxy auth to take effect now. (This is due to Chrome-142's removal of the--load-extension option and the--disable-features=DisableLoadExtensionCommandLineSwitch workaround.)

Proxy auth is set via CDP now, rather than via extension.

@Lima-e-Silva
Comment options

Thanks for the quick reply! Proxy auth is working now.

@Acolyte
Comment options

And how do you change proxy via CDP,@mdmintz? Can you provide an example for it?

@mdmintz
Comment options

Proxy is set in the beginning, and auth takes effect when activating CDP Mode:

fromseleniumbaseimportSBwithSB(uc=True,proxy="USER:PASS@IP:PORT")assb:sb.activate_cdp_mode(url)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
7 participants
@AllanFnds@Acolyte@mdmintz@urihamster@alexander01202@Lima-e-Silva@alex4845

[8]ページ先頭

©2009-2025 Movatter.jp