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

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

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

          <bdo id='S9EXu'></bdo><ul id='S9EXu'></ul>

      1. Chromedriver 78 可能存在問(wèn)題,Selenium 找不到在 Ch

        Possible issue with Chromedriver 78, Selenium can not find web element of PDF opened in Chrome(Chromedriver 78 可能存在問(wèn)題,Selenium 找不到在 Chrome 中打開(kāi)的 PDF 的 Web 元素)
        • <bdo id='3T82t'></bdo><ul id='3T82t'></ul>
          • <legend id='3T82t'><style id='3T82t'><dir id='3T82t'><q id='3T82t'></q></dir></style></legend>

              <tbody id='3T82t'></tbody>

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

                  <small id='3T82t'></small><noframes id='3T82t'>

                  本文介紹了Chromedriver 78 可能存在問(wèn)題,Selenium 找不到在 Chrome 中打開(kāi)的 PDF 的 Web 元素的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  在我的谷歌瀏覽器沒(méi)有更新到版本 78 之前,我的代碼運(yùn)行良好.我還將 chromedriver 更新到版本 78.0.3904.70.所以我再也無(wú)法使用 Selenium WebDriver 和 Java 找到 id='plugin' 的 WebElement:

                  Until my google Chrome wasn't updated to version 78 my code worked fine. I also updated the chromedriver to version 78.0.3904.70. So I am not able anymore to find WebElement with id='plugin' using Selenium WebDriver and Java:

                  <html>
                  <div id="content">
                  <embed id="plugin" type="application/x-google-chrome-pdf" src="http://??????????/offer_printed.php?printable=yes&amp;reanudar=&amp;>
                  </div>
                  </html>
                  

                  除此之外,我的測(cè)試工作正常.我以前從未遇到過(guò)類似的問(wèn)題.我也試圖找到 WebElement id='content' 但我收到了同樣的錯(cuò)誤.

                  Other than that part my tests are working fine. I never had a similar issue before. I also tried to find WebElement id='content' but I am receiving the same error.

                  WebDriverWait wait = new WebDriverWait (driver, 90);
                  WebElement scrollvalid = wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("plugin")));
                  
                  scrollvalid.sendKeys(Keys.PAGE_DOWN);                       scrollvalid.sendKeys(Keys.PAGE_DOWN);
                  

                  我的自動(dòng)化腳本應(yīng)該找到 PDF 元素并向下滾動(dòng)頁(yè)面.相反,我收到此錯(cuò)誤:org.openqa.selenium.TimeoutException:90 秒后超時(shí)等待 By.id 定位的元素的可見(jiàn)性:插件

                  My automation script should find the PDF element and scroll the page down. Instead, I am receiving this error: org.openqa.selenium.TimeoutException: Timed out after 90 seconds waiting for visibility of element located by By.id: plugin

                  有人遇到過(guò)類似的問(wèn)題嗎?提前致謝.

                  Is anybody facing a similar issue? Thanks in advance.

                  推薦答案

                  我也遇到了同樣的問(wèn)題.

                  I've run into the same issue.

                  顯然 Chrome 會(huì)自動(dòng)更新.昨天(2019 年 10 月 29 日)我的 ChromeDriver 開(kāi)始抱怨它與 Chrome 78 不兼容.我將驅(qū)動(dòng)程序更新到 78 版本.在嘗試查找我確認(rèn)存在的元素時(shí),我開(kāi)始隨機(jī)出現(xiàn) org.openqa.selenium.NoSuchElementException 異常.當(dāng)我使用斷點(diǎn)時(shí), findElement[s] 也可以工作.我也嘗試過(guò)隱式等待,但效果有限.

                  Apparently Chrome automatically updates itself. Yesterday (Oct 29 '19) My ChromeDriver started complaining that it was not compatible with Chrome 78. I updated the driver to the 78 version. I started to get random org.openqa.selenium.NoSuchElementException exceptions when trying to find elements that I confirmed were there. The findElement[s] also work when I used breakpoints. I also tried implicit waits, with only limited success.

                  我嘗試了 zsbappa 的 ChromeOption 解決方案,但沒(méi)有任何樂(lè)趣.

                  I tried zsbappa's ChromeOption solution but no joy.

                  Google 很難獲得舊版本的 Chrome,但我在 https://www.neowin.net/news/google-chrome-76-offline-installer/.請(qǐng)注意,在線安裝程序會(huì)安裝最新版本.我恢復(fù)了 76 的驅(qū)動(dòng)程序,一切都很好.我所有的 Selenium 測(cè)試都重新開(kāi)始工作了.

                  Google makes it hard to get old versions of Chrome, but I found version 76 at https://www.neowin.net/news/google-chrome-76-offline-installer/. Beware, the online installer installs the latest version. I reverted to the driver for 76 and all is good. All my Selenium tests are working again.

                  我的結(jié)論是 Chrome 78 及其相關(guān)驅(qū)動(dòng)程序存在競(jìng)爭(zhēng)條件,即 Selenium 會(huì)在網(wǎng)頁(yè)完成之前嘗試詢問(wèn)網(wǎng)頁(yè).

                  My conclusion is that the Chrome 78 and it's associated driver has a race condition where Selenium attempts to interrogate the web page before it's complete.

                  這篇關(guān)于Chromedriver 78 可能存在問(wèn)題,Selenium 找不到在 Chrome 中打開(kāi)的 PDF 的 Web 元素的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測(cè) 32 位 int 上的整數(shù)溢出?)
                  Local variables before return statements, does it matter?(return 語(yǔ)句之前的局部變量,這有關(guān)系嗎?)
                  How to convert Integer to int?(如何將整數(shù)轉(zhuǎn)換為整數(shù)?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內(nèi)創(chuàng)建一個(gè)隨機(jī)打亂數(shù)字的 int 數(shù)組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠?qū)?0xff000000 存儲(chǔ)為 int?)
                      <bdo id='KWast'></bdo><ul id='KWast'></ul>

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

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

                        • <small id='KWast'></small><noframes id='KWast'>

                          1. 主站蜘蛛池模板: 日本网站免费在线观看 | 欧美一区二区大片 | 免费99精品国产自在在线 | av毛片在线免费观看 | 欧美日韩中文字幕在线播放 | 欧洲高清转码区一二区 | 日韩在线视频免费观看 | 91综合网 | 日本韩国欧美在线观看 | 国产在线观看一区二区三区 | 亚洲 欧美 在线 一区 | 精品免费国产 | 天天干天天插天天 | 日本一道本 | 国产精品1| 日韩欧美二区 | 精久久久 | 国产精品一区二区在线免费观看 | 亚洲综合色站 | 老外黄色一级片 | 日本黄色高清视频 | 欧美电影一区 | 狠狠草视频 | 久久一区二区三区四区五区 | 国产精品福利视频 | 国产黄色大片 | 欧美性生活一区二区三区 | 中文字幕精品一区久久久久 | 精品少妇一区二区三区日产乱码 | 亚洲欧美在线视频 | 亚洲欧美激情精品一区二区 | 精品国产一区二区三区久久久久久 | 色又黄又爽网站www久久 | 国产高清视频 | 国产精品视频一区二区三区四蜜臂 | 九一在线观看 | 2019天天干夜夜操 | 国产精品一区在线观看 | www久| 欧美福利视频一区 | 国产一区二区免费 |