문제

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