当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript browser.waitForAngular方法代码示例

本文整理汇总了TypeScript中protractor.browser.waitForAngular方法的典型用法代码示例。如果您正苦于以下问题:TypeScript browser.waitForAngular方法的具体用法?TypeScript browser.waitForAngular怎么用?TypeScript browser.waitForAngular使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在protractor.browser的用法示例。


在下文中一共展示了browser.waitForAngular方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: it

 it('expect should be able to add and save new item', () => {
     siteLogPage.siteInformationHeader.click();
     itemGroup.addNewItem();
     itemGroup.individualNameInput.sendKeys(viewModel.individualName);
     itemGroup.organisationNameInput.sendKeys(viewModel.organisationName);
     itemGroup.positionNameInput.sendKeys(viewModel.positionName);
     itemGroup.deliveryPointInput.sendKeys(viewModel.deliveryPoint);
     itemGroup.cityInput.sendKeys(viewModel.city);
     itemGroup.administrativeAreaInput.sendKeys(viewModel.administrativeArea);
     itemGroup.postalCodeInput.sendKeys(viewModel.postalCode);
     itemGroup.countryInput.sendKeys(viewModel.country);
     itemGroup.emailInput.sendKeys(viewModel.email);
     itemGroup.primaryPhoneInput.sendKeys(viewModel.primaryPhone);
     itemGroup.secondaryPhoneInput.sendKeys(viewModel.secondaryPhone);
     itemGroup.faxInput.sendKeys(viewModel.fax);
     itemGroup.urlInput.sendKeys(viewModel.url);
     browser.waitForAngular();
     siteLogPage.save();
     itemGroup.updateItemElements(noOfItems);  // the new item is the last one after saving
 });
开发者ID:GeoscienceAustralia,项目名称:gnss-site-manager,代码行数:20,代码来源:site-data-center-group.e2e-spec.ts

示例2: it

    it('expect should have all values changed back to original ones for the first item', () => {
        if(!canAddNewItem) {
            TestUtils.changeInputValue(itemGroup.individualNameInput, 'individualName', backupModel);
            TestUtils.changeInputValue(itemGroup.organisationNameInput, 'organisationName', backupModel);
            TestUtils.changeInputValue(itemGroup.positionNameInput, 'positionName', backupModel);
            TestUtils.changeInputValue(itemGroup.deliveryPointInput, 'deliveryPoint', backupModel);
            TestUtils.changeInputValue(itemGroup.cityInput, 'city', backupModel);
            TestUtils.changeInputValue(itemGroup.administrativeAreaInput, 'administrativeArea', backupModel);
            TestUtils.changeInputValue(itemGroup.postalCodeInput, 'postalCode', backupModel);
            TestUtils.changeInputValue(itemGroup.countryInput, 'country', backupModel);
            TestUtils.changeInputValue(itemGroup.emailInput, 'email', backupModel);
            TestUtils.changeInputValue(itemGroup.primaryPhoneInput, 'primaryPhone', backupModel);
            TestUtils.changeInputValue(itemGroup.secondaryPhoneInput, 'secondaryPhone', backupModel);
            TestUtils.changeInputValue(itemGroup.faxInput, 'fax', backupModel);

            siteLogPage.save();
            browser.waitForAngular();
            console.log('Changed all values back to original ones for the first ' + itemGroup.itemName + ' item');
        }
    });
开发者ID:GeoscienceAustralia,项目名称:gnss-site-manager,代码行数:20,代码来源:site-contact-group.e2e-spec.ts

示例3:

                                    dirtyItems.forEach((dirtyItem) => {
                                        let dirtyItemHeader: ElementFinder = siteLogPage.getItemHeader(dirtyItem);
                                        dirtyItemHeader.click();
                                        dirtyItemHeader.getText().then((itemName) => {
                                            console.log('        Modified item: ', itemName);
                                        });
                                        browser.waitForAngular();

                                        siteLogPage.getDirtyFields(dirtyItem).then((dirtyFields) => {
                                            dirtyFields.forEach((dirtyField) => {
                                                siteLogPage.getDirtyFieldInput(dirtyField).isPresent().then((isModified: boolean) => {
                                                    if (isModified) {
                                                        siteLogPage.getDirtyFieldLabel(dirtyField).getText().then((fieldName) => {
                                                            console.log('            Modified field: ', fieldName);
                                                        });
                                                    }
                                                });
                                            });
                                        });
                                    });
开发者ID:GeoscienceAustralia,项目名称:gnss-site-manager,代码行数:20,代码来源:all-sites-initial-status.e2e-spec.ts

示例4: it

    it('expect should have all values changed for the item', () => {
        siteLogPage.siteInformationHeader.click().then(() => {
            console.log('Open Site Information Header');
        });
        itemGroup.itemGroupHeader.click().then(() => {
            console.log('Open ' + itemGroup.itemName + ' group');
        });

        TestUtils.changeInputValue(itemGroup.individualNameInput, 'individualName', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.organisationNameInput, 'organisationName', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.positionNameInput, 'positionName', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.deliveryPointInput, 'deliveryPoint', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.cityInput, 'city', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.administrativeAreaInput, 'administrativeArea', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.postalCodeInput, 'postalCode', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.countryInput, 'country', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.emailInput, 'email', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.primaryPhoneInput, 'primaryPhone', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.secondaryPhoneInput, 'secondaryPhone', viewModel, backupModel);
        TestUtils.changeInputValue(itemGroup.faxInput, 'fax', viewModel, backupModel);

        siteLogPage.save();
        browser.waitForAngular();
    });
开发者ID:GeoscienceAustralia,项目名称:gnss-site-manager,代码行数:24,代码来源:site-metadata-custodian-group.e2e-spec.ts

示例5:

 }).then( () => {
     browser.waitForAngular();
     return utils.pressButton('ul li .communities');
 }).then( () => {
开发者ID:vfcosta,项目名称:angular-theme,代码行数:4,代码来源:community.steps.ts

示例6: Given

 Given('I press button leave community', () => {
     utils.pressButton("profile-join .actions .profile-actions .leave");
     return browser.waitForAngular();
 });
开发者ID:vfcosta,项目名称:angular-theme,代码行数:4,代码来源:community.steps.ts

示例7: aguardarCarregamento

 async aguardarCarregamento() {
     await browser.sleep(5 * 1000); // identificao de processo pela rota demora mais
     await browser.waitForAngular();
 }
开发者ID:keviocastro,项目名称:daily-ui,代码行数:4,代码来源:grades.po.ts

示例8:

 await inputs.each(async x => { await x.clear(); await x.sendKeys('teste'); await browser.sleep(500); await browser.waitForAngular(); })
开发者ID:keviocastro,项目名称:daily-ui,代码行数:1,代码来源:daily.po.ts

示例9: beforeAll

 beforeAll(() => {
     browser.get('/');
     browser.waitForAngular();
     navBarPage = new NavBarPage(true);
     browser.waitForAngular();
 });
开发者ID:gjik911,项目名称:git_01,代码行数:6,代码来源:account.spec.ts

示例10: goTo

export function goTo(profile: string) {
    browser.waitForAngular();
    return browser.driver.get(`http://localhost:49152/${profile}`);
}
开发者ID:vfcosta,项目名称:angular-theme,代码行数:4,代码来源:utils.ts


注:本文中的protractor.browser.waitForAngular方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。