Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Chrome Password Manager through Karate framework

Tags:

karate

Trying to pick up the right combination of chrome options to disable annoying Password Manager popup after passing login form.

enter image description here

Here is how I create a driver:

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 }}}} |

Also I tried some other combinations with addOptions: [ ... ] and so on but nothing helps. Any ideas?

like image 261
Dmitry Avatar asked Sep 17 '20 15:09

Dmitry


People also ask

How do I stop my browser from saving passwords?

Chrome. Click the Chrome menu in the toolbar and choose Settings. Click Passwords. Turn off Offer to save passwords.


Video Answer


1 Answers

I had a similar issue but I found a workaround. Instead of using driver type to be chrome and pointing to the google chrome application installed locally download the chromedriver and use that. I used this on Windows and placed the chromedriver under C:/Windows/ folder. This did not bring up the password manager popup when executing the tests.

like image 115
Mihir Avatar answered Oct 18 '22 15:10

Mihir