Selenium: Add capability to disable 'Save your password' message for Edge browser

Created on 24 May 2018  路  9Comments  路  Source: SeleniumHQ/selenium

Meta -

OS: Windows 10

Selenium Version: 2.53.0

Browser: Edge 15 / 16 / 17

Currently there is no predefined capability to disable '_Save your password_' message for Edge browser.

Browser Version:

Expected Behavior -

There should a some capability which when used would disable 'Save your password' pop up

Actual Behavior -

There is no such capability

Steps to reproduce -

  1. Open a website which needs login credentials
  2. Provide username
  3. Provide password
  4. Click login button
  5. You will see 'Save your password' pop up displayed on the Edge browser

You can use the script from this gist to reproduce the issue

D-edge R-blocked on external

Most helpful comment

Another workaround is to open the Edge browser in InPrivate mode. It won't display the Save Password prompt in InPrivate mode.
DesiredCapabilities dc = new DesiredCapabilities();
dc = new DesiredCapabilities.edge();
dc.setCapability("InPrivate", true);

All 9 comments

While the Selenium project, via the language bindings, could provide an arbitrary capability name that you could pass to the Edge driver, unless and until the driver itself understood the capability, it would have no effect. Unfortunately, the Selenium project does not produce or maintain the Edge driver executable; Microsoft does. You鈥檒l need to get them to support such a capability before the language bindings should be expected to add it.

HI there,
I have raised an issue with the Microsoft for the same - #17647317

Is there another way to handle this situation?

Nope, that's the only way to handle this. Let's wait now.

Is there another way to handle this situation?

@ckzgraphics as a workaround, disable the prompt via Group Policy or registry.

@p0deje - I have not received any update on Microsoft page! Nobody has commented on it yet!

@cgoldberg - Thank you for the update, I have tried that on my LOCAL SYSTEM. However, this time I was aiming to perform execution on BrowserStack. Since on the remote machines, I do not have any access to the system setting this workaround would not work.

Another workaround is to open the Edge browser in InPrivate mode. It won't display the Save Password prompt in InPrivate mode.
DesiredCapabilities dc = new DesiredCapabilities();
dc = new DesiredCapabilities.edge();
dc.setCapability("InPrivate", true);

The issue link in the MS page does not exist anymore, and also a workaround has been provided. In addition, the flavor of Edge menioned in this issue is not under development anymore.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings