How to disable chrome's "save password" popup in selenium

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
chngrcn
Posts: 190
Joined: 29 Feb 2016, 08:55

How to disable chrome's "save password" popup in selenium

Post by chngrcn » 14 Mar 2023, 06:14

I am using autohotkey selenium. "Save password?" I couldn't manage to close the window. I searched a lot on the internet but I couldn't find clear information about it. especially for autohotkey's selenium..
I will share various codes, please show me the correct one..

any help will be appreciated..

Code: Select all

#NoEnv
#SingleInstance, Force
SetBatchLines -1
driver:= ComObjCreate("Selenium.CHROMEDriver")
driver.SetCapability("goog:chromeOptions", "{""excludeSwitches"":[""enable-automation""]}") ;remove automated message
;~ driver.SetCapability("goog:chromeOptions", "{""excludeSwitches"":[""enable-automation""]}")
;~ driver.AddArgument("disable-infobars") ; 
;~ driver.AddArgument("--disable-gpu")
driver.AddArgument("--start-maximized") ;start maximized
driver.AddArgument("disable-credentials_enable_service")
driver.AddArgument("disable-profile.password_manager_enabled")
;~ driver.SetCapability("credentials_enable_service", false)
;~ driver.SetCapability("profile.password_manager_enabled", false)
what I found on the internet.. these codes are codes that work on other platforms..

Code: Select all

from selenium import webdriver

chrome_opt = webdriver.ChromeOptions()
prefs = {"credentials_enable_service": False,
     "profile.password_manager_enabled": False}
chrome_opt.add_experimental_option("prefs", prefs)
driver = webdriver.Chrome(chrome_options=chrome_opt, executable_path=r'C:\Utility\BrowserDrivers\chromedriver.exe')
driver.get("https://google.com")


prefs = {"credentials_enable_service": False,
         "profile.password_manager_enabled": False}
options.add_experimental_option("prefs", prefs)



options.AddUserProfilePreference("credentials_enable_service", false);
options.AddUserProfilePreference("profile.password_manager_enabled", false);

prefs = {"credentials_enable_service":False,"profile.password_manager_enabled":False,"profile.default_content_setting_values.notifications" : 2}

refs = {"credentials_enable_service": False,
         "profile.password_manager_enabled": False}
options.add_experimental_option("prefs", prefs)
[Mod edit: Moved topic to v1 help, based on posted code and post history.]

chngrcn
Posts: 190
Joined: 29 Feb 2016, 08:55

Re: How to disable chrome's "save password" popup in selenium

Post by chngrcn » 07 Apr 2023, 02:38

Is there anyone who can help?

chngrcn
Posts: 190
Joined: 29 Feb 2016, 08:55

Re: How to disable chrome's "save password" popup in selenium

Post by chngrcn » 11 Oct 2023, 03:04

The problem is still current. I ask for your help.

Post Reply

Return to “Ask for Help (v1)”