简体   繁体   English

无法启用开发者模式 chrome selenium python

[英]Cannt enable developer mode chrome selenium python

im trying to enable developer mode but it does not work.我试图启用开发人员模式,但它不起作用。 what am i wrong at?我错在哪里? (chrome can open but developer mode is still not enabled) (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, )

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

options = webdriver.ChromeOptions() 
options.add_argument("--force-dev-mode-highlighting") 
options.add_argument("--system-developer-mode")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Chrome无头模式下使用Python中的Selenium实现Scrapyng AngularJS - Scrapyng AngularJS with Selenium in Python in Chrome headless mode selenium python 铬无头模式不支持 - selenium python chrome headless mode unsupported 为什么 selenium/python/chromedriver 无法识别 Chrome 开发人员控制台中的有效 xpath? - Why is valid xpath in chrome developer console not recognized by selenium / python / chromedriver? 如何使用 python selenium 访问 google chrome 开发人员工具上的安全面板? - How to access Security panel on google chrome developer tools with python selenium? 如何在 Python 中使用 Selenium 打开 chrome 开发者控制台? - How to open chrome developer console using Selenium in Python? 带有硒的无头模式下的铬 - chrome in headless mode with selenium 如何使用Python在Selenium Webdriver Chrome中启用JavaScript - How to enable javascript in selenium webdriver Chrome using python Selenium Python:Chrome 驱动程序的无头模式下的空缓存 - Selenium Python: Empty cache in headless mode for chrome driver 在 chrome 无头模式下使用 python selenium 定位部分链接文本 - Locating partial link text with python selenium in chrome headless mode 如何通过Selenium和Python以无头模式启动Chrome Canary - How to initiate Chrome Canary in headless mode through Selenium and Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM