How to click a button in row in a table using protractor js
问题 I am writing protractor test cases. I want to click on edit button. When I am checking by id it is not found. Code: <table class="table table-bordered table-hover"> <thead> <tr> <th>Code</th> <th>Start Date</th> <th></th> </tr> </thead> <tbody> <tr ng-repeat="batch in batches.list"> <td><a ui-sref="root.courses.detail.batches.assessments({ batch_id: batch.id,assessment_status: 'published'})">BID00{{batch.id}}</a></td> <td>{{batch.start_date}}</td> <td> <button id="edit" type="button" class=