當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript browser.wait方法代碼示例

本文整理匯總了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));
}
開發者ID:jjmeyer0,項目名稱:incubator-metron,代碼行數:4,代碼來源:e2e_util.ts

示例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();
 });
開發者ID:Chintuz,項目名稱:material2,代碼行數:6,代碼來源:sidenav-e2e.spec.ts

示例3: waitForElementPresence

export function waitForElementPresence (_element ) {
    let EC = protractor.ExpectedConditions;
    return browser.wait(EC.presenceOf(_element));
}
開發者ID:jjmeyer0,項目名稱:incubator-metron,代碼行數:4,代碼來源:e2e_util.ts

示例4: waitForElementVisibility

export function waitForElementVisibility (_element ) {
    let EC = protractor.ExpectedConditions;
    return browser.wait(EC.visibilityOf(_element));
}
開發者ID:jjmeyer0,項目名稱:incubator-metron,代碼行數:4,代碼來源:e2e_util.ts

示例5: waitForTextChange

export function waitForTextChange(element, previousText) {
  let EC = protractor.ExpectedConditions;
  return browser.wait(EC.not(EC.textToBePresentInElement(element, previousText)));
}
開發者ID:jjmeyer0,項目名稱:incubator-metron,代碼行數:4,代碼來源:e2e_util.ts

示例6: waitForText

export function waitForText(element, text) {
  let EC = protractor.ExpectedConditions;
  return browser.wait(EC.textToBePresentInElementValue(element, text));
}
開發者ID:jjmeyer0,項目名稱:incubator-metron,代碼行數:4,代碼來源:e2e_util.ts

示例7: waitForURL

export function waitForURL(url: string) {
  let EC = protractor.ExpectedConditions;
  return browser.wait(EC.urlIs(url));
}
開發者ID:jjmeyer0,項目名稱:incubator-metron,代碼行數:4,代碼來源:e2e_util.ts

示例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);
 });
開發者ID:sillsdev,項目名稱:web-languageforge,代碼行數:6,代碼來源:semantic-domains.e2e-spec.ts

示例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);
}
開發者ID:Polatouche,項目名稱:angular,代碼行數:5,代碼來源:pipe_spec.ts


注:本文中的protractor.browser.wait方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。