6

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?

Dmitry
  • 93
  • 1
  • 4
  • Hit the "never" button? This should be left up to the user, not the developer. – ceejayoz Sep 17 '20 at 17:09
  • We cannot interact with that popup directly from the driver. Also it will be shown on every new run because each new driver is being configured from scratch. – Dmitry Sep 18 '20 at 08:47

2 Answers2

2

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.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Mihir
  • 491
  • 5
  • 21
1

I've heard that using incognito mode can solve this.

Peter Thomas
  • 54,465
  • 21
  • 84
  • 248
  • 1
    Haha, yes, that worked. Not sure if this is correct approach but my problem was resolved. – Dmitry Sep 18 '20 at 08:53