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

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

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

      Protractor 中的 `browser.call()` 是什么?

      What is `browser.call()` for in Protractor?(Protractor 中的 `browser.call()` 是什么?)
      <i id='EVBna'><tr id='EVBna'><dt id='EVBna'><q id='EVBna'><span id='EVBna'><b id='EVBna'><form id='EVBna'><ins id='EVBna'></ins><ul id='EVBna'></ul><sub id='EVBna'></sub></form><legend id='EVBna'></legend><bdo id='EVBna'><pre id='EVBna'><center id='EVBna'></center></pre></bdo></b><th id='EVBna'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EVBna'><tfoot id='EVBna'></tfoot><dl id='EVBna'><fieldset id='EVBna'></fieldset></dl></div>

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

      <legend id='EVBna'><style id='EVBna'><dir id='EVBna'><q id='EVBna'></q></dir></style></legend>
        • <bdo id='EVBna'></bdo><ul id='EVBna'></ul>

            <tbody id='EVBna'></tbody>

              1. <tfoot id='EVBna'></tfoot>
                本文介紹了Protractor 中的 `browser.call()` 是什么?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我最近正在瀏覽 Protractor API 并注意到 browser.call() 方法:

                I've recently being going through the Protractor API and noticed the browser.call() method:

                安排一個命令在 webdriver 的控制流上下文中執行自定義函數.

                Schedules a command to execute a custom function within the context of webdriver's control flow.

                我想將此功能添加到我的工具包中,但我不確定我是否完全了解何時可以在實踐中使用它以及它涵蓋哪些用例?

                I would like to add this function to my toolkit, but I am not sure I completely understand when might it be used in practice and what use cases does it cover?

                推薦答案

                量角器的工作方式是它有一個內部隊列,用于設置函數的順序.因此,如果您要在測試中的某個地方調用一個函數而不告訴量角器,那么該函數將在隊列之外,并且該函數的實際執行可能隨時發生.您可以在測試中使用 console.log("something") 進行檢查,并查看它們沒有按照應用程序的編寫順序執行.

                the way protractor works is it has an internal queue where it sets the order of your functions. So if you were to call a function somewhere in your test without telling protractor, that function would be outside the queue and the actual execution of the function could happen anytime. You can check that using console.log("something") inside your tests and see that they don't execute in the order the application is written.

                如果您希望某個函數在 webdriver 事件之后專門運行(意味著您要將其添加到隊列中),您可以像這樣在 browser.call() 中調用它

                If you want a function to run specifically after a webdriver event (meaning you want to add it to the queue) you can call it inside the browser.call() like this

                browser.previousStep();
                browser.call(functionX, this, parameters...)
                browser.nextStep()
                

                this參數表示:

                在其范圍內執行函數的對象(即 this函數的對象).

                The object in whose scope to execute the function (i.e. the this object for the function).

                如文檔中所述.

                這篇關于Protractor 中的 `browser.call()` 是什么?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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() 的限制?)
                  <tbody id='i87dg'></tbody>
                    <bdo id='i87dg'></bdo><ul id='i87dg'></ul>

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

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

                        • 主站蜘蛛池模板: 国产黄色在线观看 | 日韩精品一区二区三区在线观看 | www.三级| 久视频在线观看 | 91精品一区二区三区久久久久 | 欧美视频在线看 | 精品久久久久国产 | 日韩av中文| 欧美精品三区 | 日韩手机在线视频 | 久久日本 | 国产精品视频一二三区 | 激情福利视频 | 日韩一区二区三区在线观看 | 国产高清性xxxxxxxx | 成人午夜毛片 | 国产精品日本一区二区不卡视频 | 中文字幕亚洲一区 | 日韩欧美中文字幕在线观看 | 国产一区二区精品在线 | 国产精品久久久爽爽爽麻豆色哟哟 | 米奇成人网 | 天天操天天射天天舔 | 美女一级黄 | 国产精品久久久久久久久久久久久久 | 中文字幕在线观看一区 | 午夜小电影 | 欧美成人一区二区 | 日韩欧美一区二区三区免费观看 | 欧美性a视频 | 天天干夜夜操视频 | 成人av电影在线 | 一区二区三区国产在线观看 | 亚洲欧美精品久久 | 成年网站在线观看 | 在线观看黄色电影 | 精品国产乱码久久久久久闺蜜 | 国产午夜久久 | 亚洲精品视频一区 | 日日操av| 中文字幕在线观看第一页 |