通过 Karate 框架禁用 Chrome 密码管理器

Dmi*_*try 6 karate

尝试选择正确的 chrome 选项组合以在通过登录表单后禁用烦人的密码管理器弹出窗口。

在此处输入图片说明

这是我创建驱动程序的方法:

Feature: Driver initialization

 Background:
   * configure retry = { count: 5, interval: 3000 }

  Scenario Outline: using <config>
    * def config = <config>
    * set config.showDriverLog = true
    * configure driver = config
    * driver 'https://google.com'
    * maximize()
    * retry().waitUntil("document.readyState == 'complete'")

    Examples:
      | config |
      | {type: 'chrome', executable: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', webDriverSession: { desiredCapabilities: { browserName: 'chrome', 'goog:chromeOptions': { credentials_enable_service: false, profile.password_manager_enabled: false }}}} |
Run Code Online (Sandbox Code Playgroud)

我也尝试了一些其他的组合addOptions: [ ... ]等等,但没有任何帮助。有任何想法吗?

Pet*_*mas 1

我听说使用隐身模式可以解决这个问题。