I usually extract the table row data by counting the number of rows first and then running loop up to the counted rows:
Code: Select all
ChromeFindElements>session_1,xpath,/html/body/div/table/tbody/tr,rows
let>n=0
repeat>n
let>n=n+1
//......data fetch script.......//
until>n=rows_count
Table Code:
Code: Select all
<table>
<tbody>
<tr class="table-header">...</tr>
<tr class="data-row">...</tr>
<tr class="data-row">...</tr>
<tr class="data-row">...</tr>
<tr class="heading-row">...</tr>
<tr class="data-row">...</tr>
<tr class="data-row">...</tr>
<tr class="data-row">...</tr>
<tr class="heading-row">...</tr>
<tr class="data-row">...</tr>
<tr class="data-row">...</tr>
</tbody>
</table>
here if i count the number of rows, it gives back the total number of rows including "table-header", "data-row" & "heading-row" which ultimately give the false data on running the loop.
Is there any way to get the data only from particular class, in this case data from "data-row" only?
Regards,
Ushahra