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

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

  • <tfoot id='WaJCa'></tfoot>

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

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

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

        控制 browser.wait() 的輪詢頻率(流利等待)

        Controlling poll frequency of browser.wait() (Fluent Wait)(控制 browser.wait() 的輪詢頻率(流利等待))
            <tbody id='kq25x'></tbody>
        1. <tfoot id='kq25x'></tfoot>

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

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

        2. <legend id='kq25x'><style id='kq25x'><dir id='kq25x'><q id='kq25x'></q></dir></style></legend>
              <bdo id='kq25x'></bdo><ul id='kq25x'></ul>

                  本文介紹了控制 browser.wait() 的輪詢頻率(流利等待)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  故事:

                  在 Java selenium 語言綁定中有一個 FluentWait 類,允許嚴格控制如何檢查預期條件:

                  In Java selenium language bindings there is a FluentWait class, that allows to tightly control how the expected condition would be checked:

                  每個 FluentWait 實例定義等待的最長時間對于條件,以及檢查的頻率狀況.此外,用戶可以將等待配置為忽略等待期間的特定類型的異常,例如在頁面上搜索元素時出現 NoSuchElementExceptions.

                  Each FluentWait instance defines the maximum amount of time to wait for a condition, as well as the frequency with which to check the condition. Furthermore, the user may configure the wait to ignore specific types of exceptions whilst waiting, such as NoSuchElementExceptions when searching for an element on the page.

                  換句話說,可以更改應用預期條件檢查的輪詢間隔,默認為 500 毫秒.另外,可以設置要忽略的異常.

                  In other words, it's possible to change the polling interval in which the expected condition check is applied, which is by default 500ms. Plus, it's possible to set exceptions to ignore.

                  在Python中也可以,有相關的poll_frequencyignored_exceptions 參數到 WebDriverWait 類.

                  It is also possible in Python, there are relevant poll_frequency and ignored_exceptions arguments to WebDriverWait class.

                  問題:

                  在Protractor/WebDriverJS中使用browser.wait()時,是否可以控制驗證預期條件的輪詢頻率?

                  Is it possible to control the poll frequency in which the expected condition is verified when using browser.wait() in Protractor/WebDriverJS?

                  根據browser.wait() 文檔,只有 3 個可能的參數:作為預期條件的函數、超時值和可選的超時錯誤消息.我希望有不同的設置或方法來更改投票頻率.

                  According to the browser.wait() documentation, there are only 3 possible arguments: a function which is an expected condition, a timeout value and an optional timeout error message. I hope there is a different setting or way to change the poll frequency.

                  推薦答案

                  在@Kirill S.的幫助下,經過進一步研究和檢查WebdriverJS 源代碼,我可以得出結論 javascript selenium 中沒有輪詢頻率"之類的東西綁定.無法配置后續條件檢查調用之間的間隔 - 它會盡快執行檢查.

                  With the help of @Kirill S., after the further research and inspecting the WebdriverJS source code, I can conclude that there is no such thing as "poll frequency" in javascript selenium bindings. The interval between subsequent condition check calls cannot be configured - it performs the check as quick as possible.

                  這與 Python 或 Java selenium 綁定中的情況不同,其中在預期的條件狀態檢查之間存在可配置的超時.默認情況下,會等待 500ms 再進行下一次檢查:

                  This is not the same as in, for instance Python or Java selenium bindings, where there is a configurable timeout between the expected condition state checks. By default, it would wait for 500ms before the next check:

                  WebDriverWait 默認每 500 次調用 ExpectedCondition毫秒 直到它成功返回.一個成功的回報是ExpectedCondition 類型為 Boolean 返回 true 或非 null 返回值對于所有其他 ExpectedCondition 類型.

                  WebDriverWait by default calls the ExpectedCondition every 500 milliseconds until it returns successfully. A successful return is for ExpectedCondition type is Boolean return true or not null return value for all other ExpectedCondition types.

                  這篇關于控制 browser.wait() 的輪詢頻率(流利等待)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                  Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)
                      <tfoot id='Xm4Or'></tfoot>

                        <bdo id='Xm4Or'></bdo><ul id='Xm4Or'></ul>
                      • <small id='Xm4Or'></small><noframes id='Xm4Or'>

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

                          1. <legend id='Xm4Or'><style id='Xm4Or'><dir id='Xm4Or'><q id='Xm4Or'></q></dir></style></legend>
                            主站蜘蛛池模板: www.97国产 | 中文字幕在线观看一区二区 | 人人爽人人草 | 成人黄色电影免费 | 欧美中文字幕在线观看 | 欧美精品一区二区三区蜜桃视频 | 日韩α片| a免费视频 | av免费看片| 亚洲一级毛片 | 成人网视频| 欧产日产国产精品99 | 成人3d动漫一区二区三区91 | 精品国产免费人成在线观看 | 一级毛片视频在线 | 精品久久一区 | 午夜a级理论片915影院 | 秋霞av国产精品一区 | 麻豆精品一区二区三区在线观看 | 91免费视频观看 | 天天操综合网 | 国产精品一区一区 | www在线| 日本久久精品视频 | 一区精品在线观看 | 欧美一级黄色片 | 亚洲一级二级三级 | 91精品在线播放 | 免费看淫片 | 亚洲一区二区三区欧美 | 久久精品国产精品青草 | 国产超碰人人爽人人做人人爱 | 久久久91| 福利视频三区 | 本道综合精品 | 高清免费在线 | 一本大道久久a久久精二百 国产成人免费在线 | av入口| 久久综合欧美 | 久久久久国产成人精品亚洲午夜 | 在线2区 |