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, )
相关截图:


内容的提问来源于stack exchange,提问作者Luong Doan
相关产品推荐
相关产品推荐

