呼叫元素方法时的proptractor错误



我所有的动作,只是:

element(by.binding('item.order.id')).click();

在此代码区域:

<tr
  ng-repeat="item in dataList.content"
  ng-class="{'colored-order': (settingsStorage.getProperty('personal', 'coloredOrders') === true || settingsStorage.getProperty('personal', 'coloredOrders') === 'true')}"
  class="{{item.order.status}}"
>
  <td>
    <a
      href="{{contextPath}}/company/view/{{item.ownerId}}/"
      target="_blank"
    >
      <strong
        class="mL20"
        ng-if="search.viewType === 'ARRIVED'"
        ng-cloak
      >
        {{item.order.billTo.name}}
      </strong>
    </a>
    <strong
      class="mL20"
      ng-if="search.viewType !== 'ARRIVED'"
      ng-cloak
    >
      {{item.order.billTo.name}}
    </strong>
  </td>
  <td>
    <a
      ui-sref="vieworder({ orderId: item.order.id })"
      class="link_to_view_order"
      analytics-event
      analytics-category-attr="Order_View"
    >
      {{item.order.id}}
    </a>
  </td>
</tr>

信息:    失败:在11秒后等待异步的角度任务完成。这可能是因为当前页面不是角应用程序。请参阅FAQ有关更多详细信息:https://github.com/angular/protractor/blob/master/docs/timeouts.md#waiting-for-angular    与定位器一起等待元素时 - 定位器:by.binding(" item.order.id")。    以下任务正在等待:      -  $ timeout:function(){          delete $ rootscope.pagescache.pages [data.page];          if($ state.current.name == data.page){            $ rootscope。$ bartialccast('update:data:'   data.page,{page:data.page});          }        }

但是,当我尝试打印以安装此元素时,它是打印的,没有问题。

可能是与问题 - 量角定位器time time out for angularjs应用程序

相同的问题

通常出于这些问题的根本原因是站点不断轮询$ timeout或$ http时,量角器将无限期等待并超时。

更多详细信息有关您为什么可以在此处记录此错误的更多详细信息。

  1. 忽略

  2. Interval.js:

  3. 尝试使用不同的超时配置,看看您的应用程序轮询是否在一段时间后停止

allScriptsTimeout: 120000, getPageTimeout: 120000, jasmineNodeOpts: { defaultTimeoutInterval: 120000 }