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


TypeScript protractor.protractor.until類代碼示例

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


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

示例1: waitForBootstrap

 function waitForBootstrap() {
   browser.wait(protractor.until.elementLocated(by.css(selector + ' .box')), 5000)
       .then(() => {}, () => {
         // jasmine will timeout if this gets called too many times
         console.error('>> unexpected timeout -> browser.refresh()');
         browser.refresh();
         waitForBootstrap();
       });
 }
開發者ID:DzmitryShylovich,項目名稱:angular,代碼行數:9,代碼來源:animations_spec.ts

示例2: it

  it('should greet', () => {
    // This test can't wait for Angular as Testability is not available when using WebWorker
    browser.ignoreSynchronization = true;
    browser.get(URL);

    browser.wait(protractor.until.elementLocated(by.css(selector)), 15000);
    const elem = element(by.css(selector));
    browser.wait(ExpectedConditions.textToBePresentInElement(elem, 'hello world!'), 5000);
    expect(elem.getText()).toEqual('hello world!');

  });
開發者ID:AnthonyPAlicea,項目名稱:angular,代碼行數:11,代碼來源:kitchen_sink_spec.ts

示例3: waitForBootstrap

 function waitForBootstrap() {
   browser.wait(protractor.until.elementLocated(by.css(selector + ' h2')), 5000)
       .then(
           () => {
             const elem = element(by.css(selector + ' h2'));
             browser.wait(
                 protractor.ExpectedConditions.textToBePresentInElement(elem, 'Input App'), 5000);
           },
           () => {
             // jasmine will timeout if this gets called too many times
             console.error('>> unexpected timeout -> browser.refresh()');
             browser.refresh();
             waitForBootstrap();
           });
 }
開發者ID:BobChao87,項目名稱:angular,代碼行數:15,代碼來源:input_spec.ts

示例4: waitForBootstrap

function waitForBootstrap(): void {
  browser.wait(protractor.until.elementLocated(by.css('todo-app #todoapp')), 15000);
}
開發者ID:BobChao87,項目名稱:angular,代碼行數:3,代碼來源:todo_spec.ts

示例5: waitForElement

 function waitForElement(selector: string): void {
   browser.wait(protractor.until.elementLocated(by.css(selector)), 15000);
 }
開發者ID:AnthonyPAlicea,項目名稱:angular,代碼行數:3,代碼來源:router_spec.ts


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