我正在尝试使用element(by.repeater())搜索和编辑行;
<tr ng-class="{'rowSelect': $index == tableIndex}"
ng-click="updateDetails($index)"
ng-repeat="row in displayRows track by $index" class="ng-scope"
role="button" tabindex="0">
<!-- ngRepeat: item in row -->
<td ng-repeat="item in row" class="ng-binding ng-scope">DebsProperty</td>
<!-- end ngRepeat: item in row -->
<!-- ngIf: canEdit -->
<span ng-if="canEdit" class="ng-scope">
<a ng-click="editRow(row, $index)">Edit</a></span>
<!-- end ngIf: canEdit -->
</tr>
canEdit的xpath是
//*[@id="stage"]/table/tbody/tr[223]/td[6]/span[1]/a
我如何编写量角器代码以选择canEdit以使用转发器单击。