【发布时间】:2016-05-30 05:05:18
【问题描述】:
我需要选择由 ng-repeat 创建的文本框并使用 sendKeys 函数发送一些值。但我不确定选择文本框的方法。请建议一种方法来完成此操作,或者我应该改用 css 选择器。
<div class="qst_input_hld ng-scope" ng-repeat="option in options track by $index">
<input type="text" class="input-sm ng-pristine ng-valid" ng-model="options[$index]" placeholder="Option 1" ng-class="isOptionEmpty[$index] ? 'error-border' : ''">
<!-- ngIf: $index > 1 -->
</div>
【问题讨论】:
标签: angularjs protractor