I need to find the index of the table where the value of the first column is equal to a string for example "Test" . how do write that in GEB ?
<table class="table table-striped table-bordered dataTable no-footer" id="mytable">
<thead>
<tr>
<th >libelle </th>
<th >description</th>
</tr>
</thead>
<tbody>
<c:forEach var="value" items="${values}" varStatus="status">
<tr>
<td>${value.libelle}</td>
<td>${value.description}</td>
</tr>
</c:forEach>
</tbody>
</table>
I've started with :
def index =$("#mytable tbody tr").find("tr", it).find("td", 0)
but didn't know how to put the text I'm looking for
Aucun commentaire:
Enregistrer un commentaire