You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Python+Undetected ChromeDriver无法启用Chrome开发者模式求助

问题:Undetected ChromeDriver无法启用Chrome开发者模式

我尝试用Python结合Undetected ChromeDriver开启Chrome开发者模式,但未成功。Chrome浏览器可正常启动,但开发者模式始终未开启。

我的实现代码如下:

options = uc.ChromeOptions()
options.add_argument(f"--load-extension=" + ",".join([
    str(pathlib.Path("./capcha2").absolute()),
    str(pathlib.Path("./metamask").absolute())
]))
prefs = {
    "extensions.ui.developer_mode": True,
}
options.add_experimental_option("prefs", prefs )
options.add_argument('--no-first-run --no-service-autorun --password-store=basic')
driver = uc.Chrome(use_subprocess=True, options=options, user_data_dir=path_profile_chrome, )

相关截图:
Chrome扩展界面截图1
Chrome扩展界面截图2
Chrome扩展界面截图3

内容的提问来源于stack exchange,提问作者Luong Doan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.17 16:25:38