当前位置: 首页>>代码示例>>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;未经允许,请勿转载。