【问题标题】:How to Disable "Save Password for this website" Selenium Python Syntax如何禁用“保存此网站的密码” Selenium Python 语法
【发布时间】:2017-12-28 09:59:37
【问题描述】:

我想在 Python 中使用 selenium 禁用此弹出窗口。 popup image

我已经看到很多答案显示如何在 java 中执行此操作,但我很难在 python 中实现它。

【问题讨论】:

    标签: python python-3.x selenium popup


    【解决方案1】:

    Python 实现您想要使用 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)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-12-16
      • 2018-03-17
      • 1970-01-01
      • 1970-01-01
      • 2019-10-12
      • 1970-01-01
      • 2012-01-20
      • 1970-01-01
      相关资源
      最近更新 更多