尝试选择正确的 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: [ ... ]等等,但没有任何帮助。有任何想法吗?