久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

        <legend id='waoJT'><style id='waoJT'><dir id='waoJT'><q id='waoJT'></q></dir></style></legend>

        <i id='waoJT'><tr id='waoJT'><dt id='waoJT'><q id='waoJT'><span id='waoJT'><b id='waoJT'><form id='waoJT'><ins id='waoJT'></ins><ul id='waoJT'></ul><sub id='waoJT'></sub></form><legend id='waoJT'></legend><bdo id='waoJT'><pre id='waoJT'><center id='waoJT'></center></pre></bdo></b><th id='waoJT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='waoJT'><tfoot id='waoJT'></tfoot><dl id='waoJT'><fieldset id='waoJT'></fieldset></dl></div>
          <bdo id='waoJT'></bdo><ul id='waoJT'></ul>
      1. <tfoot id='waoJT'></tfoot>

        如何擺脫信息欄“Chrome 正在被自動化測試軟件控

        How to get rid of the infobar quot;Chrome is being controlled by automated test softwarequot; through Selenium(如何擺脫信息欄“Chrome 正在被自動化測試軟件控制通過硒)
          <tbody id='NyUXD'></tbody>
        <i id='NyUXD'><tr id='NyUXD'><dt id='NyUXD'><q id='NyUXD'><span id='NyUXD'><b id='NyUXD'><form id='NyUXD'><ins id='NyUXD'></ins><ul id='NyUXD'></ul><sub id='NyUXD'></sub></form><legend id='NyUXD'></legend><bdo id='NyUXD'><pre id='NyUXD'><center id='NyUXD'></center></pre></bdo></b><th id='NyUXD'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='NyUXD'><tfoot id='NyUXD'></tfoot><dl id='NyUXD'><fieldset id='NyUXD'></fieldset></dl></div>
        • <bdo id='NyUXD'></bdo><ul id='NyUXD'></ul>

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

            <legend id='NyUXD'><style id='NyUXD'><dir id='NyUXD'><q id='NyUXD'></q></dir></style></legend>

          1. <tfoot id='NyUXD'></tfoot>

                • 本文介紹了如何擺脫信息欄“Chrome 正在被自動化測試軟件控制"通過硒的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習吧!

                  問題描述

                  搜索了一段時間并嘗試了所有現(xiàn)有的解決方案,但似乎沒有一個有效.我創(chuàng)建了一個幻燈片放映",它將首先登錄,然后在選項卡之間交替.所有這些都有效,但我無法擺脫

                  Been searching for a while and tried all the solutions present but none appear to be working. I created a "slide show" that will first log in, then alternate between tabs. All of that is working but i cannot get rid of the

                  Chrome 正在被自動化測試軟件控制"欄.有什么建議嗎?

                  "Chrome is being controlled by automated test software" bar. Any advise?

                  代碼

                  from selenium import webdriver
                  from selenium.webdriver.common.by import By
                  from selenium.webdriver.support.ui import WebDriverWait
                  from selenium.webdriver.support import expected_conditions as EC
                  usernameStr = 'test'
                  passwordStr = 'test'
                  browser = webdriver.Chrome()
                  
                  #first tab
                  browser.get(('www.testwebsite.com?'))
                  # fill in username and hit the next button
                  username = browser.find_element_by_id('username')
                  username.send_keys(usernameStr)
                  password = WebDriverWait(browser, 10).until(
                      EC.presence_of_element_located((By.ID, 'password')))
                  password.send_keys(passwordStr)
                  nextButton = browser.find_element_by_class_name('emp-submit')
                  nextButton.click()
                  
                  #second tab
                  browser.execute_script("window.open('about:blank', 'tab2');")
                  browser.switch_to.window("tab2")
                  browser.get('www.testwebsite.com')
                  

                  推薦答案

                  當您通過 ChromeDriver 打開 Chrome 瀏覽器 時,此信息欄包含 通知 嵌入如下:

                  When you open Chrome Browser in through ChromeDriver this infobar containing the notification is embedded as follows:

                  Chrome is being controlled by automated test software
                  

                  • 不帶參數(shù)disable-infobars的瀏覽器快照:
                    • Browser snapshot without the argument disable-infobars:
                    • 但是,如果您通過 ChromeOptions 的實例添加參數(shù) disable-infobars,您可以按如下方式刪除此信息欄:

                      But if you add the argument disable-infobars through an instance of ChromeOptions you can get rid of this infobar as follows:

                      • 代碼塊:

                      • Code Block:

                      from selenium import webdriver
                      from selenium.webdriver.chrome.options import Options
                      
                      options = Options()
                      options.add_argument('start-maximized')
                      options.add_argument('disable-infobars')
                      driver = webdriver.Chrome(chrome_options=options, executable_path=r'C:WebDriverschromedriver.exe')
                      driver.get('https://www.google.com/')
                      

                    • 應(yīng)用參數(shù)disable-infobars的瀏覽器快照:

                      這篇關(guān)于如何擺脫信息欄“Chrome 正在被自動化測試軟件控制"通過硒的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                      【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應(yīng)命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)

                      <tbody id='dl98a'></tbody>
                  1. <i id='dl98a'><tr id='dl98a'><dt id='dl98a'><q id='dl98a'><span id='dl98a'><b id='dl98a'><form id='dl98a'><ins id='dl98a'></ins><ul id='dl98a'></ul><sub id='dl98a'></sub></form><legend id='dl98a'></legend><bdo id='dl98a'><pre id='dl98a'><center id='dl98a'></center></pre></bdo></b><th id='dl98a'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dl98a'><tfoot id='dl98a'></tfoot><dl id='dl98a'><fieldset id='dl98a'></fieldset></dl></div>
                      • <bdo id='dl98a'></bdo><ul id='dl98a'></ul>
                        <tfoot id='dl98a'></tfoot>
                        <legend id='dl98a'><style id='dl98a'><dir id='dl98a'><q id='dl98a'></q></dir></style></legend>

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

                          • 主站蜘蛛池模板: 国产高清美女一级a毛片久久w | 午夜国产 | 天天看天天爽 | 男女在线免费观看 | 午夜免费视频 | 国产精品久久国产精品 | 欧美日韩中 | 一区二区三区高清 | 国产精品视频网 | 欧美视频在线一区 | 91高清在线观看 | 狠狠的干狠狠的操 | 美女视频黄的 | 日韩久久综合网 | 婷婷久| 日本福利在线观看 | 国产福利视频 | 91.com在线观看| 蜜桃视频成人 | 涩涩视频网站在线观看 | 日韩中文一区 | 亚洲视频免费观看 | 亚洲一区二区三区视频免费观看 | 亚洲国产一区二区在线 | 日韩精品一区二区三区在线观看 | 久久黄色精品视频 | 国产精品高清一区二区 | 日韩久久成人 | www4虎| 国内精品99 | 亚洲色综合 | 欧美激情亚洲激情 | 成人免费一级视频 | 成人在线视频免费观看 | 久草网址| 91久久精品日日躁夜夜躁欧美 | 国产精品久久久久免费 | 国产精品我不卡 | 亚洲精品一区二区三区丝袜 | 欧美日韩一区二区在线播放 | 日本三级在线视频 |