<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)中的弹出窗口

        How to disable chrome#39;s quot;save passwordquot; popup in selenium webdriver (python)(如何禁用 chrome 的“保存密码selenium webdriver(python)中的弹出窗口)
          <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)中的弹出窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)

                      <tbody id='h9YJg'></tbody>
                      <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>