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


TypeScript ElementArrayFinder.count方法代碼示例

本文整理匯總了TypeScript中protractor.ElementArrayFinder.count方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript ElementArrayFinder.count方法的具體用法?TypeScript ElementArrayFinder.count怎麽用?TypeScript ElementArrayFinder.count使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在protractor.ElementArrayFinder的用法示例。


在下文中一共展示了ElementArrayFinder.count方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: it

  it('should add inputs programmatically', () => {
    expect(inputs.count()).toBe(2);

    buttons.get(1).click();
    inputs = element.all(by.css('input'));

    expect(inputs.count()).toBe(3);
  });
開發者ID:Cammisuli,項目名稱:angular,代碼行數:8,代碼來源:nested_form_array_spec.ts

示例2: it

 it('should can post a movimiento when logged in and display it on Lista Movimientos', () => {
   nuevoMovimientoPage.navigateTo();
   nuevoMovimientoPage.createMovimiento('27/03/2017', '20', 'Gasto', 'Compras');
   listaMovimientosPage.navigateTo();
   const listaMovimientos: ElementArrayFinder = listaMovimientosPage.searchListaMovimientos();
   expect(listaMovimientos.count()).toBe(1);
 });
開發者ID:AgoraBinaria,項目名稱:cash-flow,代碼行數:7,代碼來源:app.e2e-spec.ts

示例3: expect

  const expectHeroes = (isShown: boolean, ng1HeroCount = 3, statusMessage = 'Ready') => {
    // Verify the show/hide button text.
    expect(showHideBtn.getText()).toBe(isShown ? 'Hide heroes' : 'Show heroes');

    // Verify the `<ng2-heroes>` component.
    expect(ng2Heroes.isPresent()).toBe(isShown);
    if (isShown) {
      expect(ng2HeroesHeader.getText()).toBe('Heroes');
      expect(ng2HeroesExtra.getText()).toBe(`Status: ${statusMessage}`);
    }

    // Verify the `<ng1-hero>` components.
    expect(ng1Heroes.count()).toBe(isShown ? ng1HeroCount : 0);
    if (isShown) {
      ng1Heroes.each(ng1Hero => expect(ng1Hero).toBeAHero());
    }
  };
開發者ID:DeepanParikh,項目名稱:angular,代碼行數:17,代碼來源:static_lite_spec.ts

示例4: it

 it('should delete closed panel', () => {
     closeIcons.get(0).click();
     expect(closableTabElements.count()).toBe(2);
 });
開發者ID:s-dezign,項目名稱:primeng,代碼行數:4,代碼來源:tabview.e2e-spec.ts

示例5: it

 it('should show and hide success messages', () => {
     successButton.click();
     expect<any>(growlItemContainer.count()).toBe(1);
     browser.sleep(4000);
     expect<any>(growlItemContainer.count()).toBe(0);
 });
開發者ID:s-dezign,項目名稱:primeng,代碼行數:6,代碼來源:growl.e2e-spec.ts

示例6:

 browser.wait(() => elems.count().then(c => c === count), 5000);
開發者ID:BobChao87,項目名稱:angular,代碼行數:1,代碼來源:e2e-spec.ts

示例7: checkItemCount

 public static checkItemCount(elemArrayFinder: ElementArrayFinder, action: string, expectCount: number) {
     elemArrayFinder.count().then((count: number) => {
         console.log('Number of items after ' + action + ': ' + count);
         expect(count).toBe(expectCount);
     });
 }
開發者ID:GeoscienceAustralia,項目名稱:gnss-site-manager,代碼行數:6,代碼來源:test.utils.ts

示例8:

export const waitForCount = (elementArrayFinder: ElementArrayFinder, expectedCount: number) => () => {
  return elementArrayFinder.count().then(actualCount => expectedCount === actualCount);
};
開發者ID:gjik911,項目名稱:git_01,代碼行數:3,代碼來源:utils.ts


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