Python 3.x Chrome 57的Chrome驱动程序不接受启用保存密码气泡=false

Python 3.x Chrome 57的Chrome驱动程序不接受启用保存密码气泡=false,python-3.x,google-chrome,selenium-webdriver,Python 3.x,Google Chrome,Selenium Webdriver,我使用Python3.x和Selenium包创建了一个fb报废应用程序。 最近我更新了Chrome57浏览器,并获得了最新的Chrome驱动程序。 在这个新版本中,任何成功登录后都会弹出保存密码的消息。我尝试使用-enable save password bubble=false参数,但没有成功。 我的代码片段如下所示: chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--enable

我使用Python3.x和Selenium包创建了一个fb报废应用程序。 最近我更新了Chrome57浏览器,并获得了最新的Chrome驱动程序。 在这个新版本中,任何成功登录后都会弹出保存密码的消息。我尝试使用-enable save password bubble=false参数,但没有成功。 我的代码片段如下所示:

    chrome_options = webdriver.ChromeOptions()
    chrome_options.add_argument("--enable-save-password-bubble=false")
    browser = webdriver.Chrome('chromedriver', chrome_options=chrome_options)
    browser.get("http://www.facebook.com")
在Chrome 57中我是否错过了一些明显的东西或是发生了一些变化

谢谢大家!

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
    }
})
这对我有用。 指