我需要找到表的索引,其中第一列的值等于字符串,例如"测试" 。怎么写在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>
我开始时:
def index =$("#mytable tbody tr").find("tr", it).find("td", 0)
但我不知道如何填写我正在寻找的文字
答案 0 :(得分:0)
<record model="ir.ui.view" id="pesan_form_view">
<field name="name">pesan_service_form</field>
<field name="model">pesan.service</field>
<field name="arch" type="xml">
<form string="Booking Service" attrs="{'edit': [('state', 'in', ['baru'])]}">
<!-- structure of form -->
</record>
或者您真的需要索引吗?