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

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

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

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

    3. <legend id='kXqam'><style id='kXqam'><dir id='kXqam'><q id='kXqam'></q></dir></style></legend>

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

        如何使量角器中的自動化測試腳本等待,直到頁

        How to make automated test scripts in protractor wait, until the page is loaded fully(如何使量角器中的自動化測試腳本等待,直到頁面完全加載)
          <bdo id='3l0UT'></bdo><ul id='3l0UT'></ul>
          1. <tfoot id='3l0UT'></tfoot>

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

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

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

                • 本文介紹了如何使量角器中的自動化測試腳本等待,直到頁面完全加載的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  不,但真的!我知道這個通用問題已被問過數千次,但有一些更具體的問題對我來說似乎可行,因此我想知道如何實現它

                  問題

                  我正在使用

                  如果不完全相同,但我如何讓量角器掛起,直到頁面完全加載

                  重要考慮

                  顯然,我可以做很多骯臟的解決方案,比如顯式等待.但是我每隔一段時間就會回到這個問題,所以我對這些 70% 的時間都針對特定原因有效的骯臟解決方案不感興趣

                  附:我認為該按鈕會更改 document.load() 事件.但是我不知道我應該在控制臺中寫什么,以便在我刷新頁面時該腳本記錄一條消息

                  解決方案

                  你試過了嗎

                  await browser.wait(async() =>等待 browser.driver.executeScript('return document.readyState;') === 'loading', 2000).then(() => true, () => true);等待 browser.wait(async () =>await browser.driver.executeScript('return document.readyState;') === '完成', 5000)

                  No, but really! I know this generic question has been asked thousands of times, but there is something more specific that looks feasible to me and thus I want to know how to achieve it

                  The problem

                  I'm testing an angular app with protractor. Inside the app I want to verify that when I click a link I'm being redirected to the right page (non-angular). The problem is that until I reach the page I'm verifying, the url changes 3 times or so (there are multiple redirections happening), so I can't make a waiting function wait until the page is loaded completely

                  What I tried/what won't work for me

                  1. I'm against browser.sleep() for more than 1000 ms!
                  2. browser.waitForAngular() as this is not an angular page
                  3. ExpectedConditions.urlIs() the url is the variable I'm asserting
                  4. ExpectedConditions.presenseOf() the page maybe changing so I can't rely on elements inside
                  5. browser.executeScript("return window.document.readyState") returns compete immediately, though the page is still loading (I was certain this is what I need, but that didn't work either)
                  6. I tried even adding a functions that waits for innerHtml of the whole page not change for at least 3 sec, but it fails because at times there is a pause of more than 3 sec between redirects are happening. Everything above 3 sec isn't a reasonable timeout

                  The question

                  What I noticed is when the browser is loading the page, Reload this page button changes its state to Stop loading this page (X icon) until I'm redirected to the final page (screenshots below). So the question is is there a way to make protractor point to the same condition that chrome uses to choose which icon is displayed?

                  vs

                  And if not exactly the same, but how do I make protractor hang until the page is fully loaded

                  Important to consider

                  Obviously there are a lot of dirty solutions that I can do like explicit waits. But I'm coming back to this question every once in a while, so I'm not interested in these dirty solutions that work 70% of the time for a specific cause

                  P.S. I figured that the button changes the icon on document.load() event. But I can't figure out what should I write in the console in order for that script to log a message when I refresh they page

                  解決方案

                  Have you tried

                  await browser.wait(async () =>
                          await browser.driver.executeScript('return document.readyState;') === 'loading', 2000)
                          .then(() => true, () => true);
                  await browser.wait(async () =>
                          await browser.driver.executeScript('return document.readyState;') === 'complete', 5000)
                  

                  這篇關于如何使量角器中的自動化測試腳本等待,直到頁面完全加載的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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() 的限制?)

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

                        <tbody id='KQz97'></tbody>

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

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

                            主站蜘蛛池模板: 一级免费毛片 | 国产视频一区二区在线观看 | 91在线电影 | 国产精品二区三区 | 欧美日韩在线播放 | 国产成人99av超碰超爽 | 91免费福利在线 | 亚洲一二三区在线观看 | 精品国产乱码久久久 | 国产精品视频一区二区三区不卡 | 喷潮网站| 日韩中文字幕一区 | 国产在线观看免费 | 亚洲风情在线观看 | 可以在线看的黄色网址 | 中日韩欧美一级片 | 超碰美女在线 | 久草精品视频 | 日本一二三区高清 | 亚洲高清久久 | 色999日韩| 欧美成人激情视频 | 欧产日产国产精品国产 | 亚洲综合二区 | 成人一区二区三区在线观看 | 亚洲欧洲日韩精品 中文字幕 | 岛国在线免费观看 | 在线男人天堂 | 请别相信他免费喜剧电影在线观看 | 成人免费视频网站在线看 | 欧美成人一区二区 | 欧美一级片a | 久久国产区 | 人人人干 | 91久久久久久 | 蜜桃特黄a∨片免费观看 | 欧美三级三级三级爽爽爽 | 天天拍天天操 | 成人在线视频一区 | 产真a观专区 | 欧美理论片在线观看 |