我有情况。当我点击"更新"我的网络应用程序上的按钮 - 显示成功消息的警报。但是量角器找不到它。代码html:
<div class="toast ng-scope toast-success" ng-mouseout="restartTimer(toaster)" ng-mouseover="stopTimer(toaster)" ng-click="click(toaster)" ng-class="toaster.type" ng-repeat="toaster in toasters" style="">
<!-- ngIf: toaster.showCloseButton -->
<div class="ng-binding toast-title" ng-class="config.title"/>
<div class="toast-message" on="toaster.bodyOutputType" ng-switch="" ng-class="config.message">
<!-- ngSwitchWhen: trustedHtml -->
<!-- ngSwitchWhen: template -->
<!-- ngSwitchWhen: templateWithData -->
<!-- ngSwitchWhen: directive -->
<!-- ngSwitchDefault: -->
<div class="ng-binding ng-scope" ng-switch-default="">The application record has been successfully updated</div>
<!-- end ngSwitchWhen: -->
</div>
</div>
<!-- end ngRepeat: toaster in toasters -->
</div>
所以,量角器找不到它:
<div class="ng-binding ng-scope" ng-switch-default="">The application record has been successfully updated</div>
什么问题?
我使用那个定位器
element.all(by.repeater('toaster in toasters'))
答案 0 :(得分:0)