如何禁用此网站的保存密码&Selenium Python语法(&QOOT;SAVE PASSWORD) [英] How to Disable "Save Password for this website" Selenium Python Syntax
本文介绍了如何禁用此网站的保存密码&Selenium Python语法(&QOOT;SAVE PASSWORD)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在Python中使用Selenium禁用此弹出窗口。 popup image
我看到了很多关于如何在java中做到这一点的答案,但是我很难用python实现它。
Python
推荐答案要使用Selenium完成的任务的实现。
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.add_experimental_option('prefs', {
'credentials_enable_service': False,
'profile': {
'password_manager_enabled': False
}
})
driver = webdriver.Chrome(chrome_options=chrome_options)
这篇关于如何禁用此网站的保存密码&Selenium Python语法(&QOOT;SAVE PASSWORD)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文