本文整理匯總了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}`);
}