WebDriver Chrome浏览器:避免弹出“您是否希望chrome保存密码" [英] WebDriver Chrome Browser: Avoid 'Do you want chrome to save your password' pop up
本文介绍了WebDriver Chrome浏览器:避免弹出“您是否希望chrome保存密码"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每次我的网络驱动程序测试登录该应用程序时,都会弹出您是否希望chrome保存密码".是否有避免这种情况的方法?
Every time my webdriver tests login into the application, 'Do you want chrome to save your password' pop up appears.. Is there a way to avoid this??
请帮助.
谢谢, 迈克
推荐答案
您需要配置以下chrome驱动程序选项:
You need to configure the following chrome driver options:
chromeOptions: {
prefs: {
'credentials_enable_service': false,
'profile': {
'password_manager_enabled': false
}
}
}
这篇关于WebDriver Chrome浏览器:避免弹出“您是否希望chrome保存密码"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文