最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - How to disable Google Password Manager during automated tests - Stack Overflow

programmeradmin1浏览0评论

I am running automation tests using Chrome, Chromedriver 135.0.7049.42 and Selenium.WebDriver 4.30

During the test, I enter the password and then the "Google Password Manager" dialog appears.

The dialog remains displayed, which blocks my further tests.

Please advise me how to disable this dialog from appearing?

I am running automation tests using Chrome, Chromedriver 135.0.7049.42 and Selenium.WebDriver 4.30

During the test, I enter the password and then the "Google Password Manager" dialog appears.

The dialog remains displayed, which blocks my further tests.

Please advise me how to disable this dialog from appearing?

Share Improve this question asked 18 hours ago MajklMajkl 1871 gold badge4 silver badges11 bronze badges
Add a comment  | 

1 Answer 1

Reset to default -1

Try this:

options.add_experimental_option("prefs", {
    "credentials_enable_service": False,
    "profile.password_manager_enabled": False
})
options.add_argument("--disable-save-password-bubble")
发布评论

评论列表(0)

  1. 暂无评论