设置启动参数:禁用密码保存
禁用密码保存:
options = webdriver.ChromeOptions() prefs = {"":""} prefs["credentials_enable_service"] = False prefs["profile.password_manager_enabled"] = False options.add_experimental_option("prefs", prefs) driver = webdriver.Chrome(chrome_options=options)