Disable chrome save password dialog using selenium

In chrome browser, when logged into any site with credentials, save password dialog pops up near to address bar,

This pops up because “Offer to save passwords…” option is checked under
Chrome Settings | Show Advanced Settings… | Password and forms section

Manually we can uncheck to disable the popup, but in this post we will see how we can achieve using selenium

We will use below 2 preferences with ChromeOptions to disable ‘save password’ dialog

prefs.put("credentials_enable_service", false);
prefs.put("profile.password_manager_enabled", false);

Let’s see the implementation

 

Content posted is based on learning or working experience, Share the post with others if find useful, Any queries?, leave comments or discuss on our facebook:qavalidation.com, Thanks!

1 Response

  1. Pinakin says:

    Works perfectly!! Thanks!!

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: