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

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

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

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

        量角器 - 在哪里使用 browser.waitForAngular()

        Protractor - Where to use browser.waitForAngular()(量角器 - 在哪里使用 browser.waitForAngular())
          <bdo id='dHypx'></bdo><ul id='dHypx'></ul>

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

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

                • <legend id='dHypx'><style id='dHypx'><dir id='dHypx'><q id='dHypx'></q></dir></style></legend><tfoot id='dHypx'></tfoot>
                    <tbody id='dHypx'></tbody>

                  本文介紹了量角器 - 在哪里使用 browser.waitForAngular()的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一些使用量角器為 angular.js 應用程序編寫的測試.我正在使用 Page Objects 設計模式,并且我有一些方法可以通過單擊鏈接和按鈕導航到其他頁面.不久之后,我正在調用 browser.waitForAngular().

                  I have some tests written using protractor for angular.js app. I am using Page Objects design pattern and there i have some methods that navigate to other pages by clicking on links and buttons. and soon after that i am calling browser.waitForAngular().

                  頁面對象

                  module.exports = function () {
                      this.companyNameLink = element(by.id('viewCompany'));
                      this.newMeetingButton = element(by.id('newMeetingButton'));
                  
                      this.createNewGeneralMeeting = function () {
                          this.newMeetingButton.click();
                          browser.waitForAngular();
                      };
                  
                      this.goToCompanyPage = function () {
                          this.companyNameLink.click();
                          browser.waitForAngular();
                      };
                  };
                  

                  在一些規范文件中,我像這樣使用這個頁面對象..

                  And in some spec file i use this page object like this..

                  var DashboardPage = require('../dashboardPageObject.js');
                  dashboardPage = new DashboardPage();
                  
                  ...
                  
                  dashboardPage.goToCompanyPage();
                  

                  但問題是有時我得到 angular could not be found on the window 錯誤并且我的測試失敗.大多數時候測試運行.這個問題是隨機的.我的問題是我應該從頁面對象方法中刪除 browser.waitForAngular() 并在我像這樣調用方法后調用它...

                  But the problem is sometimes i get the angular could not be found on the window error and my tests fail. Most of the time the tests run. This issue is random. My question is that should i remove the browser.waitForAngular() from the page object method and call it after i make the method call like this...

                  修改后的頁面對象

                  ...
                  this.goToCompanyPage = function () {
                      this.companyNameLink.click();
                  };
                  ...
                  

                  規格文件

                  dashboardPage.goToCompanyPage();
                  browser.waitForAngular();
                  

                  調用 browser.waitForAngular() 是否會導致問題?我應該在哪里調用 waitForAngular 有沒有關于如何使用它的最佳實踐?

                  Is calling browser.waitForAngular() causing the issue? Where should i call waitForAngular is there any best practice on how to use this?

                  推薦答案

                  來自protractor的文檔:

                  From protractor's documentation:

                  指示 webdriver 等到 Angular 完成渲染并且沒有未完成的 $http 或 $timeout 調用后再繼續.請注意,量角器會在每個 WebDriver 操作之前自動應用此命令.

                  Instruct webdriver to wait until Angular has finished rendering and has no outstanding $http or $timeout calls before continuing. Note that Protractor automatically applies this command before every WebDriver action.

                  你根本不應該調用這個,我想不出一個你應該調用的有效案例.

                  You shouldn't be calling this at all and I cannot think of a valid case where you should.

                  這篇關于量角器 - 在哪里使用 browser.waitForAngular()的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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() 的限制?)
                • <i id='Me3kv'><tr id='Me3kv'><dt id='Me3kv'><q id='Me3kv'><span id='Me3kv'><b id='Me3kv'><form id='Me3kv'><ins id='Me3kv'></ins><ul id='Me3kv'></ul><sub id='Me3kv'></sub></form><legend id='Me3kv'></legend><bdo id='Me3kv'><pre id='Me3kv'><center id='Me3kv'></center></pre></bdo></b><th id='Me3kv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Me3kv'><tfoot id='Me3kv'></tfoot><dl id='Me3kv'><fieldset id='Me3kv'></fieldset></dl></div>
                  <tfoot id='Me3kv'></tfoot>
                  • <bdo id='Me3kv'></bdo><ul id='Me3kv'></ul>

                      <tbody id='Me3kv'></tbody>

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

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

                          • 主站蜘蛛池模板: 我要看免费一级毛片 | 午夜影院在线观看免费 | 高清国产午夜精品久久久久久 | 免费看91| 久久成人国产精品 | 亚洲精品一区国产精品 | 国产精品久久久久久亚洲调教 | 国产精品久久久久久久久久妞妞 | 欧美一级二级在线观看 | 99在线视频观看 | 青青久久 | 日本理论片好看理论片 | 99视频免费 | 国产成人精品一区二区 | 四虎在线观看 | 在线一区二区三区 | 国产精品精品视频一区二区三区 | 午夜视频精品 | 一级国产精品一级国产精品片 | 日本视频中文字幕 | 人人艹人人 | 久久国产综合 | 噜啊噜在线 | 亚洲成人毛片 | 亚洲婷婷六月天 | 亚洲国产中文字幕 | 日韩久久久久久久 | 久草在线| 国产精品一区二区在线 | a在线观看 | 国产精品一区二区av | 欧美操操操 | 亚洲欧美精品 | 一级黄色片在线看 | 欧产日产国产精品v | 亚洲不卡 | 婷婷99| 中文字幕视频在线 | 日韩中文字幕在线观看 | 欧美a级成人淫片免费看 | 日韩欧美电影在线 |