Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Disable "Save Password for this website" Selenium Python Syntax

I want to disable this pop up with selenium in Python. popup image

I have seen a lot of answers that show how to do this in java but I am having a hard time implementing it in python.

like image 839
DeathByPython Avatar asked Oct 22 '25 15:10

DeathByPython


1 Answers

Python implementation for the task you want to accomplish using selenium.

from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_experimental_option('prefs', {
    'credentials_enable_service': False,
    'profile': {
        'password_manager_enabled': False
    }
})
driver = webdriver.Chrome(chrome_options=chrome_options)
like image 124
Abdul Moiz Farooq Avatar answered Oct 25 '25 05:10

Abdul Moiz Farooq