通过空手道框架禁用 Chrome 密码管理器
Disable Chrome Password Manager through Karate framework
尝试选择 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 }}}} |
我还尝试了其他一些与 addOptions: [ ... ]
的组合等等,但没有任何帮助。有什么想法吗?
我听说使用隐身模式可以解决这个问题。
我遇到了类似的问题,但我找到了解决方法。不要使用驱动程序类型 chrome 并指向本地安装的 google chrome 应用程序下载 chrome 驱动程序并使用它。我在 Windows 上使用了它,并将 chrome 驱动程序放在 C:/Windows/ 文件夹下。这不会在执行测试时弹出密码管理器弹出窗口。
尝试选择 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 }}}} |
我还尝试了其他一些与 addOptions: [ ... ]
的组合等等,但没有任何帮助。有什么想法吗?
我听说使用隐身模式可以解决这个问题。
我遇到了类似的问题,但我找到了解决方法。不要使用驱动程序类型 chrome 并指向本地安装的 google chrome 应用程序下载 chrome 驱动程序并使用它。我在 Windows 上使用了它,并将 chrome 驱动程序放在 C:/Windows/ 文件夹下。这不会在执行测试时弹出密码管理器弹出窗口。