when i use watirwebdriver,i come up with some questions,i can't select one in table ,it needs double click,somebody else can help me? look forward to your anwser.

<table id="customerName_dataTableLov" class="dataTable" style="">
<thead>
 <tr role="row">
</thead>
<tbody role="alert" aria-live="polite" aria-relevant="all">
<tr class="odd">
<tr class="even">
<tr class="odd">
<tr class="even">``
<tr class="odd">
<tr class="even">
<tr class="odd">
<tr class="even">
<tr class="odd">
<tr class="even">
</tbody>
</table>
有帮助吗?

解决方案

Not sure which item you are trying to double click, but if you are trying to double click a row in the table you can do something like this:

Where x is the row index:

b.table(:id => "customerName_dataTableLov").tbody.tr(:index => x).double_click 
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top