<legend id='0OiiW'><style id='0OiiW'><dir id='0OiiW'><q id='0OiiW'></q></dir></style></legend>
        <bdo id='0OiiW'></bdo><ul id='0OiiW'></ul>
    1. <small id='0OiiW'></small><noframes id='0OiiW'>

      <tfoot id='0OiiW'></tfoot>
    2. <i id='0OiiW'><tr id='0OiiW'><dt id='0OiiW'><q id='0OiiW'><span id='0OiiW'><b id='0OiiW'><form id='0OiiW'><ins id='0OiiW'></ins><ul id='0OiiW'></ul><sub id='0OiiW'></sub></form><legend id='0OiiW'></legend><bdo id='0OiiW'><pre id='0OiiW'><center id='0OiiW'></center></pre></bdo></b><th id='0OiiW'></th></span></q></dt></tr></i><div id='0OiiW'><tfoot id='0OiiW'></tfoot><dl id='0OiiW'><fieldset id='0OiiW'></fieldset></dl></div>

        如何禁用 chrome 的“保存密码"selenium webdriver(python)中的弹出窗口

        时间:2023-06-06
          <tbody id='nUpIJ'></tbody>
        <tfoot id='nUpIJ'></tfoot>

                <legend id='nUpIJ'><style id='nUpIJ'><dir id='nUpIJ'><q id='nUpIJ'></q></dir></style></legend>
                  <bdo id='nUpIJ'></bdo><ul id='nUpIJ'></ul>
                • <small id='nUpIJ'></small><noframes id='nUpIJ'>

                  <i id='nUpIJ'><tr id='nUpIJ'><dt id='nUpIJ'><q id='nUpIJ'><span id='nUpIJ'><b id='nUpIJ'><form id='nUpIJ'><ins id='nUpIJ'></ins><ul id='nUpIJ'></ul><sub id='nUpIJ'></sub></form><legend id='nUpIJ'></legend><bdo id='nUpIJ'><pre id='nUpIJ'><center id='nUpIJ'></center></pre></bdo></b><th id='nUpIJ'></th></span></q></dt></tr></i><div id='nUpIJ'><tfoot id='nUpIJ'></tfoot><dl id='nUpIJ'><fieldset id='nUpIJ'></fieldset></dl></div>

                  本文介绍了如何禁用 chrome 的“保存密码"selenium webdriver(python)中的弹出窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想在我的 selenium 测试中禁用 chrome 中的保存密码"弹出窗口,只要它出现.我通过 ChromeOptions() 找到了一种方法,但找不到使弹出窗口消失所需的参数或首选项.

                  I want to disable the "save password" popup in chrome in my selenium test whenever it appears. I found a way through ChromeOptions(), but can't find the argument or preference necessary to make the popup disappear.

                  from selenium.webdriver.chrome.options import Options
                  chrome_options = Options()
                  chrome_options.add_argument("argument")
                  

                  推荐答案

                  禁用 Google Chrome 中的 save password 弹窗 在您的 Selenium 测试中,您可以使用以下代码块:

                  To disable the save password popup in Google Chrome within your Selenium Tests you can use the following piece of code block:

                  from selenium import webdriver
                  
                  chrome_opt = webdriver.ChromeOptions()
                  prefs = {"credentials_enable_service": False,
                       "profile.password_manager_enabled": False}
                  chrome_opt.add_experimental_option("prefs", prefs)
                  driver = webdriver.Chrome(chrome_options=chrome_opt, executable_path=r'C:UtilityBrowserDriverschromedriver.exe')
                  driver.get("https://google.com")
                  

                  这篇关于如何禁用 chrome 的“保存密码"selenium webdriver(python)中的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Chrome 打开时显示“数据;"带硒铬驱动器 下一篇:InvalidArgumentException:消息:无效参数:使用 ChromeDriver Selenium 启动

                  相关文章

                    <bdo id='h9YJg'></bdo><ul id='h9YJg'></ul>
                • <i id='h9YJg'><tr id='h9YJg'><dt id='h9YJg'><q id='h9YJg'><span id='h9YJg'><b id='h9YJg'><form id='h9YJg'><ins id='h9YJg'></ins><ul id='h9YJg'></ul><sub id='h9YJg'></sub></form><legend id='h9YJg'></legend><bdo id='h9YJg'><pre id='h9YJg'><center id='h9YJg'></center></pre></bdo></b><th id='h9YJg'></th></span></q></dt></tr></i><div id='h9YJg'><tfoot id='h9YJg'></tfoot><dl id='h9YJg'><fieldset id='h9YJg'></fieldset></dl></div>
                • <tfoot id='h9YJg'></tfoot>

                  <small id='h9YJg'></small><noframes id='h9YJg'>

                • <legend id='h9YJg'><style id='h9YJg'><dir id='h9YJg'><q id='h9YJg'></q></dir></style></legend>