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