當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。