selenium启动chrome浏览器关掉密码保存提示

from selenium import webdriver
 
chrome_options = webdriver.ChromeOptions()
# options.headless = True
prefs = {"credentials_enable_service": False,
         "profile.password_manager_enabled": False
        }
chrome_options.add_experimental_option("prefs", prefs)

# 驱动浏览器
chrome_driver = uc.Chrome(
    driver_executable_path="src/selenium/driverfile/chromedriver.exe", options=chrome_options)
posted @ 2023-03-10 10:24  煦色韶光  阅读(410)  评论(0编辑  收藏  举报