当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript ExpectedConditions.stalenessOf方法代码示例

本文整理汇总了TypeScript中protractor.ExpectedConditions.stalenessOf方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ExpectedConditions.stalenessOf方法的具体用法?TypeScript ExpectedConditions.stalenessOf怎么用?TypeScript ExpectedConditions.stalenessOf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在protractor.ExpectedConditions的用法示例。


在下文中一共展示了ExpectedConditions.stalenessOf方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: it

 it('can submit request', () => {
   forgotPasswordPage.usernameInput.sendKeys(constants.expiredUsername);
   forgotPasswordPage.submitButton.click();
   expect<any>(forgotPasswordPage.errors.count()).toBe(0);
   browser.wait(ExpectedConditions.stalenessOf(resetPasswordPage.confirmPasswordInput), constants.conditionTimeout);
   browser.wait(ExpectedConditions.visibilityOf(loginPage.infoMessages.get(0)), constants.conditionTimeout);
   expect<any>(loginPage.username.isDisplayed()).toBe(true);
   expect<any>(loginPage.errors.count()).toBe(0);
   expect<any>(loginPage.infoMessages.count()).toBe(1);
   expect<any>(loginPage.infoMessages.first().getText()).toContain('email sent');
 });
开发者ID:sillsdev,项目名称:web-languageforge,代码行数:11,代码来源:reset-forgotten-password.e2e-spec.ts

示例2: it

      it('can search, select and add language', () => {
        page.modal.selectLanguage.searchLanguageInput.sendKeys(constants.searchLanguage + Key.ENTER);
        expect<any>(page.modal.selectLanguage.languageRows.first().isPresent()).toBe(true);

        expect<any>(page.modal.selectLanguage.addButton.isPresent()).toBe(true);
        expect<any>(page.modal.selectLanguage.addButton.isEnabled()).toBe(false);
        page.modal.selectLanguage.languageRows.first().click();
        expect<any>(page.modal.selectLanguage.addButton.isEnabled()).toBe(true);
        expect<any>(page.modal.selectLanguage.addButton.getText()).toEqual('Add ' + constants.foundLanguage);

        page.modal.selectLanguage.addButton.click();
        browser.wait(ExpectedConditions.stalenessOf(page.modal.selectLanguage.searchLanguageInput),
          constants.conditionTimeout);
        expect<any>(page.modal.selectLanguage.searchLanguageInput.isPresent()).toBe(false);
      });
开发者ID:,项目名称:,代码行数:15,代码来源:

示例3: waitForIonicClickBlock

export async function waitForIonicClickBlock(present: string) {
  await browser.wait(EC.presenceOf($(present)), 5000);
  await browser.wait(EC.stalenessOf($('.click-block-active')), 5000);
}
开发者ID:bitjson,项目名称:copay,代码行数:4,代码来源:utils.ts

示例4:

 .then((el) => {
    return browser.wait(ExpectedConditions.stalenessOf(element(toast)), timeout, 'still visible');
 });
开发者ID:scttcper,项目名称:toastr-ng2,代码行数:3,代码来源:app.po.ts

示例5: waitStaleness

export function waitStaleness(element: ElementFinder | ExtendedElementFinder) {
  return browser.wait(EC.stalenessOf(element), TIMEOUT, `element ${element.locator().value} not visible`);
}
开发者ID:VS-work,项目名称:gapminder-offline,代码行数:3,代码来源:waitHelper.ts

示例6: waitForSpinner

export function waitForSpinner() {
  // return browser.wait(EC.visibilityOf(CommonChartPage.spinner), 3000, 'spinner to be visible').then(() => {
  return browser.wait(EC.stalenessOf(CommonChartPage.spinner), MAX_TIMEOUT, 'stalenessOf of spinner');
  // });
}
开发者ID:VS-work,项目名称:gapminder-offline,代码行数:5,代码来源:helper.ts

示例7:

By.partialButtonText('searchText');
By.repeater('repeatDescriptor');
By.exactRepeater('repeatDescriptor');
By.cssContainingText('cssSelector', 'searchText');
By.options('optionsDescriptor');
By.deepCss('selector');
By.className('className');
By.css('css');
By.id('id');
By.linkText('linkText');
By.js('js');
By.name('name');
By.partialLinkText('partialText');
By.tagName('tagName');
By.xpath('xpath');
ExpectedConditions.not(() => {});
ExpectedConditions.and(() => {});
ExpectedConditions.and(() => {},() => {});
ExpectedConditions.or(() => {});
ExpectedConditions.or(() => {},() => {});
ExpectedConditions.alertIsPresent();
ExpectedConditions.elementToBeClickable(element(by.css('')));
ExpectedConditions.textToBePresentInElement(element(by.css('')), 'text');
ExpectedConditions.textToBePresentInElementValue(element(by.css('')), 'text');
ExpectedConditions.titleContains('title');
ExpectedConditions.presenceOf(element(by.css('')));
ExpectedConditions.stalenessOf(element(by.css('')));
ExpectedConditions.visibilityOf(element(by.css('')));
ExpectedConditions.invisibilityOf(element(by.css('')));
ExpectedConditions.elementToBeSelected(element(by.css('')));
开发者ID:HelloMQL,项目名称:protractor,代码行数:30,代码来源:test_pass.ts

示例8: cancel

 /**
  * Cancels out of the current modal by clicking the "cancel" button.
  */
 cancel(): Promise<void> {
     this.btnCancel.click();
     return browser.wait(EC.stalenessOf(this));
 }
开发者ID:Droogans,项目名称:encore-ui,代码行数:7,代码来源:rxModalAction.page.ts

示例9: submit

 /**
  * Clicks the "submit" button. This isn't exactly what you think it is in a multi-step modal!
  */
 @OverrideWebdriver
 submit(): Promise<void> {
     this.btnSubmit.click();
     return browser.wait(EC.stalenessOf(this));
 }
开发者ID:Droogans,项目名称:encore-ui,代码行数:8,代码来源:rxModalAction.page.ts


注:本文中的protractor.ExpectedConditions.stalenessOf方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。