小编Dmi*_*try的帖子

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

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

karate

6
推荐指数
1
解决办法
176
查看次数

标签 统计

karate ×1