我试图启用开发模式,但它不起作用。我做错什么了?(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, )



发布于 2022-10-07 12:27:14
options = webdriver.ChromeOptions()
options.add_argument("--force-dev-mode-highlighting")
options.add_argument("--system-developer-mode")https://stackoverflow.com/questions/73985132
复制相似问题