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

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

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

  2. <tfoot id='ILEiu'></tfoot>

      • <bdo id='ILEiu'></bdo><ul id='ILEiu'></ul>

      如何在 Angular 2 中使用量角器?

      How to use Protractor with Angular 2?(如何在 Angular 2 中使用量角器?)

            <tbody id='Babr8'></tbody>
              <bdo id='Babr8'></bdo><ul id='Babr8'></ul>

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

              • <tfoot id='Babr8'></tfoot>
              • 本文介紹了如何在 Angular 2 中使用量角器?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我在 Angular 1.x 中使用 Protractor.我想逐步遷移到 Angular 2.0,但我沒有在文檔中看到 Protractor /a>.

                自 Angular 2 以來量角器是否已被刪除?我應(yīng)該在不使用 Protractor 的情況下編寫測試,而是使用 Jasmine(或其他)嗎?

                解決方案

                您可以使用 Protractor 測試 Angular 2 應(yīng)用程序(從 Protractor 2.5.0 開始).p>

                對(duì)于 Protractor 5.0.0+,您不需要不必做任何具體的事情,Protractor 將自動(dòng)檢測被測應(yīng)用程序中使用的 Angular 版本.

                對(duì)于 Protractor >= 2.5.0 和 <= 4.0.14,您只需將 useAllAngular2AppRoots: true 添加到您的配置中.這是一個(gè)示例.

                <小時(shí)>

                請(qǐng)注意,一些內(nèi)置的 Protractor 匹配器尚不能與 Angular2 一起使用,請(qǐng)參閱:

                • Protractor Angular 2 失敗:未知錯(cuò)誤:未定義角度

                Firefox中還有那個(gè)Protractor+Angular2的問題(還沒解決),見:

                • 無法運(yùn)行 Selenium更新到 Angular 2 后通過 Firefox 上的量角器

                I use Protractor with Angular 1.x. I would like to migrate to Angular 2.0 step by step but I don't see Protractor in the docs.

                Has protractor been dropped since Angular 2? Should I write my tests without using Protractor, using Jasmine instead (or others)?

                解決方案

                You can test Angular 2 applications with Protractor (starting from Protractor 2.5.0).

                For Protractor 5.0.0+, you don't have to do anything specific, Protractor will auto-detect the Angular version used in the application under test.

                For Protractor >= 2.5.0 and <= 4.0.14, you would only need to add useAllAngular2AppRoots: true to your config. Here is a sample.


                Note that several built-in Protractor matchers would not yet work with Angular2, see:

                • Protractor Angular 2 Failed: unknown error: angular is not defined

                There is also that Protractor+Angular2 problem in Firefox (still unresolved), see:

                • Can't run Selenium via Protractor on Firefox after update to Angular 2

                這篇關(guān)于如何在 Angular 2 中使用量角器?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會(huì)等待 ajax 調(diào)用完成)
                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 無法加載,請(qǐng)求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請(qǐng)求是否有可能不遵循重定向 (301 302))
                XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)
                Restrictions of XMLHttpRequest#39;s getResponseHeader()?(XMLHttpRequest 的 getResponseHeader() 的限制?)

                    <tfoot id='vwpH5'></tfoot>
                  1. <small id='vwpH5'></small><noframes id='vwpH5'>

                      <tbody id='vwpH5'></tbody>
                      <bdo id='vwpH5'></bdo><ul id='vwpH5'></ul>
                    • <legend id='vwpH5'><style id='vwpH5'><dir id='vwpH5'><q id='vwpH5'></q></dir></style></legend>
                      <i id='vwpH5'><tr id='vwpH5'><dt id='vwpH5'><q id='vwpH5'><span id='vwpH5'><b id='vwpH5'><form id='vwpH5'><ins id='vwpH5'></ins><ul id='vwpH5'></ul><sub id='vwpH5'></sub></form><legend id='vwpH5'></legend><bdo id='vwpH5'><pre id='vwpH5'><center id='vwpH5'></center></pre></bdo></b><th id='vwpH5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vwpH5'><tfoot id='vwpH5'></tfoot><dl id='vwpH5'><fieldset id='vwpH5'></fieldset></dl></div>
                        • 主站蜘蛛池模板: 日本 欧美 国产 | 在线日韩欧美 | 午夜精品一区二区三区免费视频 | 国产欧美久久精品 | 欧美另类日韩 | 国产精品波多野结衣 | 91久久国产综合久久 | 国产精品久久久久无码av | 亚洲国产成人精品久久久国产成人一区 | 五月综合久久 | 日韩成人在线视频 | 欧美成人第一页 | 在线播放国产一区二区三区 | 国产激情视频在线免费观看 | 国产精品视频中文字幕 | 色综久久 | 成人精品视频在线 | 九九热这里 | 成人三级视频 | 欧美激情视频一区二区三区免费 | 国产免费福利在线 | aaaaaaa片毛片免费观看 | 国产亚洲精品综合一区 | 欧美一级免费看 | 美国黄色毛片 | 久久综合九九 | 午夜一区二区三区在线观看 | 国产精品资源在线 | 欧美a级成人淫片免费看 | 成人在线视频免费看 | 一本色道久久综合亚洲精品高清 | 97精品超碰一区二区三区 | 久久国产精彩视频 | 亚洲第一天堂无码专区 | 国产一级片免费视频 | 欧美在线一区二区三区 | 日本黄色大片免费 | 在线免费观看a级片 | 日韩av手机在线观看 | 天天草天天射 | 亚洲精品视频观看 |