2014-02-10 39 views
-4

當我使用watirwebdriver,我想出了一些問題,我不能在表中選擇一個,它需要雙擊,其他人可以幫助我?期待你的接吻。如何在表格中選擇一個使用watirwebdriver?

<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> 
+0

你是什麼意思*我不能選擇一個表* *?我沒有找到你 –

+0

你需要雙擊哪個特定元素? –

回答

0

不知道你想哪個項目雙擊,但如果你試圖雙擊表中的行,你可以做這樣的事情:

其中x是行索引:

b.table(:id => "customerName_dataTableLov").tbody.tr(:index => x).double_click 
+0

我已經解決了這個問題,但是謝謝你們。 – user2827430

相關問題