本文整理匯總了TypeScript中protractor.browser.waitForAngularEnabled方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript browser.waitForAngularEnabled方法的具體用法?TypeScript browser.waitForAngularEnabled怎麽用?TypeScript browser.waitForAngularEnabled使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類protractor.browser
的用法示例。
在下文中一共展示了browser.waitForAngularEnabled方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: holdMyProtractorIAmGoingIn
export async function holdMyProtractorIAmGoingIn(
actionsWithAngularDisabled: () => Promise<void>
) {
await browser.waitForAngularEnabled(false);
await actionsWithAngularDisabled();
await browser.waitForAngularEnabled(true);
}
示例2: irParaProgramaDeAula
async irParaProgramaDeAula() {
browser.waitForAngularEnabled(true);
await navigateTo(`lesson-syllabus`);
await browser.waitForAngularEnabled(true);
await browser.sleep(5 * 1000); // identificao de processo pela rota demora mais
await browser.waitForAngular();
}
示例3: it
it('should check that the close delay is working', () => {
page.closeDelayInput.clear();
page.closeDelayInput.sendKeys(1000);
page.dayPickerInput.click();
page.clickOnDayButton('15');
browser.waitForAngularEnabled(false);
expect(page.datePickerPopup.isDisplayed()).toBe(true);
browser.sleep(200);
expect(page.datePickerPopup.isDisplayed()).toBe(true);
browser.sleep(600);
browser.waitForAngularEnabled(true);
expect(page.datePickerPopup.isDisplayed()).toBe(false);
});
示例4: constructor
constructor(){
navigateTo('/');
browser.executeScript('window.localStorage.clear();');
browser.executeScript('window.stop();');
browser.sleep(1000);
browser.waitForAngularEnabled(false);
}
示例5: login
login() {
this.navigateToLogin();
this.setUserNameAndPassword('admin', 'password');
this.submitLoginForm();
browser.waitForAngularEnabled(false);
browser.wait(function() {return element(by.css('.logout')).isPresent(); });
}
示例6: it
it('should auto close the toast within the timeout', () => {
browser.waitForAngularEnabled(true);
page.navigateTo();
page.setTimeout(100);
page.clickShowToast();
page.waitForToast().then((element) => {
page.waitForToastDisappear(400); // timeout + ease time
});
});
示例7: getErrorMessage
getErrorMessage() {
browser.waitForAngularEnabled(false);
let errElement = element(by.css('.login-failed-msg'));
return waitForElementVisibility(errElement).then(() => {
browser.sleep(1000);
return errElement.getText().then((message) => {
return message.replace(/\n/, '').replace(/LOG\ IN$/, '');
});
});
}