python selenium自动化屏蔽chrome“正受到自动化测试软件的控制”、“开发者模式”、“保存密码提示”
from selenium import webdriver option = webdriver.ChromeOptions() #屏蔽自动化受控提示 && 开发者提示 option.add_experimental_option("excludeSwitches", ['enable-automation', 'load-extension']) # 屏蔽'保存密码'提示框 prefs = {} prefs["credentials_enable_service"] = False prefs["profile.password_manager_enabled"] = False option.add_experimental_option("prefs", prefs) driver = webdriver.Chrome(options=option)