本文整理汇总了TypeScript中protractor.browser.wait方法的典型用法代码示例。如果您正苦于以下问题:TypeScript browser.wait方法的具体用法?TypeScript browser.wait怎么用?TypeScript browser.wait使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类protractor.browser
的用法示例。
在下文中一共展示了browser.wait方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: waitForStalenessOf
export function waitForStalenessOf (_element ) {
let EC = protractor.ExpectedConditions;
return browser.wait(EC.stalenessOf(_element));
}
示例2: it
it('should close again', () => {
element(by.buttonText('Open sidenav')).click();
element(by.buttonText('Open sidenav')).click();
browser.wait(EC.presenceOf(element(by.className('mat-sidenav-closed'))), 1000);
expect(input.isDisplayed()).toBeFalsy();
});
示例3: waitForElementPresence
export function waitForElementPresence (_element ) {
let EC = protractor.ExpectedConditions;
return browser.wait(EC.presenceOf(_element));
}
示例4: waitForElementVisibility
export function waitForElementVisibility (_element ) {
let EC = protractor.ExpectedConditions;
return browser.wait(EC.visibilityOf(_element));
}
示例5: waitForTextChange
export function waitForTextChange(element, previousText) {
let EC = protractor.ExpectedConditions;
return browser.wait(EC.not(EC.textToBePresentInElement(element, previousText)));
}
示例6: waitForText
export function waitForText(element, text) {
let EC = protractor.ExpectedConditions;
return browser.wait(EC.textToBePresentInElementValue(element, text));
}
示例7: waitForURL
export function waitForURL(url: string) {
let EC = protractor.ExpectedConditions;
return browser.wait(EC.urlIs(url));
}
示例8: it
it('should be using English Semantic Domain after refresh', () => {
expect<any>(editorPage.edit.entryCountElem.isDisplayed()).toBe(true);
browser.refresh();
browser.wait(ExpectedConditions.visibilityOf(editorPage.edit.entryCountElem), Utils.conditionTimeout);
expect<any>(editorPage.edit.semanticDomain.values.first().getText()).toEqual(semanticDomain1dot1English);
});
示例9: waitForElement
function waitForElement(selector: string) {
const EC = ExpectedConditions;
// Waits for the element with id 'abc' to be present on the dom.
browser.wait(EC.presenceOf($(selector)), 20000);
}