Q:

How to close Chrome save password pop up in python

I am trying to close the save password prompt window in Chrome. I am not able to get the control of it.
I tried Xpath, selenium.webdriver.chrome.options( by adding arguments)
Also tried
alrt = driver.switch_to_alert()
alrt.dismiss()

but no luck.
Any help?
from selenium.webdriver.chrome.options import Options
chrome_options = Options()
chrome_options.AddUserProfilePreference("credentials_enable_service", False);
chrome_options.AddUserProfilePreference("profile.password_manager_enabled", False);

A:

The thing which worked for me was :
chrome_options = Options()
    chromedriver = 'C:\Jars\chromedriver.exe'
    prefs = {"profile.password_manager_enabled": False, "credentials_enable_service": False}
    chrome_options.add_experimental_option("prefs", prefs)
    driver = webdriver.Chrome(executable_path = chromedriver,chrome_options=chrome_options)

