나는 상황이있다. 내 웹 응용 프로그램에서 "업데이트"버튼을 클릭하면 성공적인 메시지와 함께 경고가 표시됩니다. 그러나 각도기는 그것을 찾을 수 없습니다. 코드 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'))
시도 할 때 예외는 무엇입니까 ?? –
응답 해 주셔서 감사합니다. 예외는 없습니다. ng-repeater = '토스터에서 토스터'요소를 찾으려고하면 0 요소가 반환됩니다. 분도기는 중계기를 찾지 만 내부에 어떤 요소도 찾을 수 없습니다. 각도기는 1 개의 요소를 찾아야합니다.