<tfoot id='sR6KX'></tfoot>

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

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

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

      • <bdo id='sR6KX'></bdo><ul id='sR6KX'></ul>
    2. “角度未定义"对存储在 Liferay 中的角度应用

      时间:2023-10-12
        • <bdo id='Yzeyx'></bdo><ul id='Yzeyx'></ul>
            <tbody id='Yzeyx'></tbody>

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

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

                本文介绍了“角度未定义"对存储在 Liferay 中的角度应用程序执行量角器测试时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我在 Ubuntu 14.04 虚拟主机上运行,​​我正在尝试使用 PROTRACTOR 和托管在Liferay"中的应用程序创建一些 E2E 测试.

                i'm running on a Ubuntu 14.04 virtual-host and i'm trying to create some E2E tests with PROTRACTOR for and Application hosted in "Liferay".

                对于登录部分(不需要角度),使用量角器的测试正常,页面登录并正确导航,但是当我尝试在基于 angularjs 的应用程序上打开下拉"菜单时,使用以下内容代码:

                For the login section (that doesn't require angular) the test with protractor are Ok, the page logins and navigates correctly, but when i try to open a "drop-down" menu on the angularjs based app with the following code:

                <select class = "form-control menu-select ng-pristine ng-valid"
                ng-model = "topTitlesData.topFiveDateRange"
                name = "topFiveDateRange"
                ng-options = "range.name for range in        topTitlesData.topFiveDateRangeValues"
                ng-change = "" > < option value = "0" > Last day < /option><option value="1">Last 5 days</option > < option value = "2" > Last 7 days < /option><option value="3">Last 30 days</option > < option value = "4" > last 90 days < /option></select>
                

                我收到了这个错误日志:

                i got this error log:

                UnknownError:未知错误:未定义角度

                UnknownError: unknown error: angular is not defined

                This is the test script on js:
                
                
                describe('pages with login', function() {
                  it('should log in with a non-Angular page and select and option', funcion() {
                    browser.ignoreSynchronization = true;
                    browser.get('***************');
                    element(by.id('_58_login')).clear();
                    element(by.id('_58_login')).sendKeys('*******');
                    expect(element(by.id('_58_login')).getAttribute('value')).toEqual('*****');
                    element(by.id('_58_password')).sendKeys('*****', protractor.Key.ENTER);
                    browser.get('***************');
                    //browser.ignoreSynchronization = false;
                    var selects = element.all(by.model('topTitlesData.topFiveDateRange'));
                    expect(selects.count()).toEqual(5);
                  });
                });

                我想知道,我错过了什么?

                i'm wondering, what am i missing ?

                我已经安装和更新了 nodejs、量角器、webadmin-manager、jdk7.*

                i have nodejs, protractor, webadmin-manager,jdk7.* installed and updated

                推荐答案

                谢谢你,问题是测试没有等到 angular 加载到页面...所以我用"Grunt"、Yeoman"和 Ruby +ruby-compass" gem 并避免使用 liferay.我也设置了

                thank you, the issue was that the tests didn't wait till angular in loaded to the page... so i setup a localhost with the application with "Grunt", "Yeoman" and Ruby + "ruby-compass" gem and avoided liferay. I also setup

                allScriptsTimeout: 5000000,

                在 config.js 文件中,现在测试运行正常.

                in the config.js file and now the tests is running okay.

                这篇关于“角度未定义"对存储在 Liferay 中的角度应用程序执行量角器测试时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何让 Protractor 不等待 $timeout? 下一篇:使用量角器在 Firefox 上下载文件

                相关文章

                最新文章

                    <bdo id='4k8oa'></bdo><ul id='4k8oa'></ul>
                  <i id='4k8oa'><tr id='4k8oa'><dt id='4k8oa'><q id='4k8oa'><span id='4k8oa'><b id='4k8oa'><form id='4k8oa'><ins id='4k8oa'></ins><ul id='4k8oa'></ul><sub id='4k8oa'></sub></form><legend id='4k8oa'></legend><bdo id='4k8oa'><pre id='4k8oa'><center id='4k8oa'></center></pre></bdo></b><th id='4k8oa'></th></span></q></dt></tr></i><div id='4k8oa'><tfoot id='4k8oa'></tfoot><dl id='4k8oa'><fieldset id='4k8oa'></fieldset></dl></div>
                  <legend id='4k8oa'><style id='4k8oa'><dir id='4k8oa'><q id='4k8oa'></q></dir></style></legend>
                  <tfoot id='4k8oa'></tfoot>

                1. <small id='4k8oa'></small><noframes id='4k8oa'>