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

  • <legend id='Dez8H'><style id='Dez8H'><dir id='Dez8H'><q id='Dez8H'></q></dir></style></legend>

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

      1. <small id='Dez8H'></small><noframes id='Dez8H'>

        量角器 + 混合 Angular 1+2 應(yīng)用程序 = 失敗

        Protractor + Hybrid Angular 1+2 Application = Fail(量角器 + 混合 Angular 1+2 應(yīng)用程序 = 失敗)

        <legend id='0CFlH'><style id='0CFlH'><dir id='0CFlH'><q id='0CFlH'></q></dir></style></legend>

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

            <bdo id='0CFlH'></bdo><ul id='0CFlH'></ul>

                <tbody id='0CFlH'></tbody>

              <small id='0CFlH'></small><noframes id='0CFlH'>

            1. <tfoot id='0CFlH'></tfoot>
                • 本文介紹了量角器 + 混合 Angular 1+2 應(yīng)用程序 = 失敗的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  Protractor 在 Angular 1 上運(yùn)行良好,但在將我的應(yīng)用升級到混合 Angular 1+2 后,我收到此錯誤:

                  Protractor works well on Angular 1 but after upgrading my app to an hybrid Angular 1+2 I get this error:

                  失敗:等待 Protractor 與頁面同步時出錯:"[ng:test] 沒有為 getTestability 的元素參數(shù)找到注入器http://errors.angularjs.org/1.4.9/ng/test"

                  Failed: Error while waiting for Protractor to sync with the page: "[ng:test] no injector found for element argument to getTestability http://errors.angularjs.org/1.4.9/ng/test"

                  當(dāng)您的 Angular 1 應(yīng)用程序中沒有 ng-app 標(biāo)簽 <div ng-app=myAppManager"> 并且可以輕松修復(fù)時,這似乎是一個常見錯誤wiyh rootElement : 'html' 在您的量角器配置文件中,但它似乎沒有改變混合應(yīng)用程序的任何內(nèi)容.

                  It seems a common error when you don't have a ng-app tag <div ng-app=myAppManager"> in your Angular 1 app and can be easily fixed wiyh rootElement : 'html' in your protractor config file but it doesn't seem to change anything on hybrid app.

                  我嘗試了 rootElement : 'html' 甚至 useAllAngular2AppRoots: true.

                  我懷疑問題來自混合 Angular 的異步加載(來自 升級文檔):

                  I suspect the problem comes from the asynchronous loading of the hybrid angular (from the upgrade doc):

                  angular.bootstrap 和upgradeAdapter.bootstrap 是后者異步工作.這意味著我們不能假設(shè)應(yīng)用程序已經(jīng)實(shí)例化在引導(dǎo)調(diào)用返回后立即.

                  One notable difference between angular.bootstrap and upgradeAdapter.bootstrap is that the latter works asynchronously. This means that we cannot assume that the application has been instantiated immediately after the bootstrap call returns.

                  我的配置文件:

                  exports.config = {
                      framework: 'jasmine2',
                      seleniumAddress: 'http://localhost:4444/wd/hub',
                      specs: ['protractor.js'],
                      jasmineNodeOpts: {
                          showColors: true,
                          defaultTimeoutInterval: 50000,
                      },
                      allScriptsTimeout: 50000,//seb
                      capabilities: {
                          'browserName': 'chrome',
                          'chromeOptions': {
                              'prefs': {
                                  'profile.managed_default_content_settings.notifications':2
                              }
                          }
                      },
                      rootElement : 'html',
                      // useAllAngular2AppRoots: true,
                      jasmineNodeOpts: {
                          realtimeFailure: true
                      },
                      onPrepare: function() {
                        var failFast = require('jasmine-fail-fast');
                        jasmine.getEnv().addReporter(failFast.init());
                      }
                  }
                  

                  推薦答案

                  Protractor 團(tuán)隊(duì)已經(jīng)解決了這個問題:

                  Protractor team has fixed with this:

                  https://github.com/angular/angular/pull/7603

                  我還沒有測試過

                  編輯 2:似乎不起作用,我回到了 angularJs(版本 1)

                  編輯 3:我移至 React

                  這篇關(guān)于量角器 + 混合 Angular 1+2 應(yīng)用程序 = 失敗的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

                    <small id='8frnU'></small><noframes id='8frnU'>

                    <tfoot id='8frnU'></tfoot>

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

                            <bdo id='8frnU'></bdo><ul id='8frnU'></ul>
                              <tbody id='8frnU'></tbody>

                            主站蜘蛛池模板: 91免费入口 | 午夜男人视频 | 亚洲精品一区中文字幕 | 精品久久香蕉国产线看观看亚洲 | 欧美精品一区久久 | 免费在线成人网 | 成人免费观看视频 | 色婷婷av一区二区三区软件 | 欧一区| 亚洲国产精品久久久 | 青青草视频免费观看 | 一级做a| 91社区在线观看播放 | 国产网站在线免费观看 | 一区二区三区四区视频 | 精品久久久久一区二区国产 | 亚洲一区二区三区国产 | 性网址| 成人一区在线观看 | 中文字幕在线看第二 | 久优草| 国产综合精品一区二区三区 | 日本视频在线播放 | 亚洲欧美日韩一区二区 | 亚洲综合视频 | av片在线观看| 色综合天天天天做夜夜夜夜做 | 亚洲高清在线 | 欧美一区二区在线免费观看 | 伊人久麻豆社区 | 欧美日韩久久精品 | 九九久久精品 | 国产精品久久久久久久久大全 | 一区二区三区视频在线观看 | sese视频在线观看 | 卡通动漫第一页 | 男女羞羞网站 | 一区二区三区四区av | 亚洲高清在线观看 | 国产丝袜一区二区三区免费视频 | 精品乱码一区二区三四区 |