本文整理汇总了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
});
示例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');
}
});
示例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);
});
}
});
});
});
});
示例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( () => {
示例6: Given
Given('I press button leave community', () => {
utils.pressButton("profile-join .actions .profile-actions .leave");
return browser.waitForAngular();
});
示例7: aguardarCarregamento
async aguardarCarregamento() {
await browser.sleep(5 * 1000); // identificao de processo pela rota demora mais
await browser.waitForAngular();
}
示例8:
await inputs.each(async x => { await x.clear(); await x.sendKeys('teste'); await browser.sleep(500); await browser.waitForAngular(); })
示例9: beforeAll
beforeAll(() => {
browser.get('/');
browser.waitForAngular();
navBarPage = new NavBarPage(true);
browser.waitForAngular();
});
示例10: goTo
export function goTo(profile: string) {
browser.waitForAngular();
return browser.driver.get(`http://localhost:49152/${profile}`);
}