设置启动参数:禁用密码保存

禁用密码保存:

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)

 

posted @ 2019-03-23 09:54  唐大侠的小迷弟  阅读(498)  评论(0编辑  收藏  举报