通过空手道框架禁用Chrome Password Manager [英] Disable Chrome Password Manager through Karate framework

查看:9
本文介绍了通过空手道框架禁用Chrome Password Manager的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正在尝试选择正确的Chrome选项组合,以在传递登录表单后禁用讨厌的密码管理器弹出窗口。

我是如何创建驱动程序的:

数据-lang="js"数据-隐藏="假"数据-控制台="真"数据-巴贝尔="假">
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 }}}} |

我还尝试了其他一些与addOptions: [ ... ]的组合,等等,但都没有用。有什么想法吗?

推荐答案

我听说使用匿名模式可以解决此问题。

这篇关于通过空手道框架禁用Chrome Password Manager的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆