Handling chrome save password pop up.

2,651 views
Skip to first unread message

Manjuraj Hanji

unread,
Apr 20, 2017, 1:17:47 AM4/20/17
to webdriver
Hi All,

Have trouble handling the "Do you want Google chrome to save password for this site?" pop up while executing through selenium webdriver. I have attached screen shot for the pop up. can please any one help me on this?
Remberpass.png

Bill Ross

unread,
Apr 20, 2017, 1:28:13 AM4/20/17
to webd...@googlegroups.com

I would look for a setting to disable it, before figuring out how to handle it.

Bill


On 4/19/17 10:17 PM, Manjuraj Hanji wrote:
Hi All,

Have trouble handling the "Do you want Google chrome to save password for this site?" pop up while executing through selenium webdriver. I have attached screen shot for the pop up. can please any one help me on this?
--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+...@googlegroups.com.
To post to this group, send email to webd...@googlegroups.com.
Visit this group at https://groups.google.com/group/webdriver.
For more options, visit https://groups.google.com/d/optout.

SuperKevy

unread,
Apr 20, 2017, 10:48:23 AM4/20/17
to webdriver
+1 to Bill

chrome://settings/   

Password and Form settings should be unchecked. 

Robert

unread,
Apr 22, 2017, 1:00:35 PM4/22/17
to webdriver
As follow-up to this, my Chrome settings for passwords and forms is unchecked.  BUT, I'm still seeing that annoying pop-up message.  Any further guidance would be appreciated

Bill Ross

unread,
Apr 22, 2017, 2:32:54 PM4/22/17
to webd...@googlegroups.com
Maybe there's a way to do it programmatically before launching the test?

Bill
--

SuperKevy

unread,
Apr 23, 2017, 1:11:59 PM4/23/17
to webdriver
Robert Are you launching chrome with a profile attached?

Did we solve Manjuaraj question?

Manjuraj Hanji

unread,
Apr 24, 2017, 5:55:56 AM4/24/17
to webdriver
Below code is working for me.


ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-save-password-bubble");
Map<String, Object> prefs = new HashMap<String, Object>();
    prefs.put("credentials_enable_service", false);
    prefs.put("profile.password_manager_enabled", false);
    options.setExperimentalOption("prefs", prefs);
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
ChromeDriver driver = new ChromeDriver(capabilities);

Robert

unread,
Apr 24, 2017, 1:28:35 PM4/24/17
to webdriver
Manjuraj,

Thanks for sharing your solution.  I was not setting up my options and prefs dynamically. It works now.

outo...@gmail.com

unread,
Oct 26, 2017, 10:30:21 AM10/26/17
to webdriver
Hi  Could anyone tell me how to sort my stored passwords in Chrome?

Thx

SuperKevy

unread,
Oct 27, 2017, 10:24:11 AM10/27/17
to webdriver
This really has nothing to do with this thread.  Its basicly going off topic or an attempt to hijack some accounts.

I assume you should be  looking at passwords.google.com there you can manage saved passwords. 

.
Reply all
Reply to author
Forward
0 new messages