Answer the question
In order to leave comments, you need to log in
How to get to the third element in casperjs?
Hello! I have the following html structure
<table cellpadding="0" cellspacing="0" class="nomenc_table">
<tbody><tr class="nomenc_tr_1">
<td class="nomenc_title">Manufacturer</td>
<td class="nomenc_text">A.C.C.&S.</td>
</tr>
<tr class="nomenc_tr_2">
<td class="nomenc_title">Description</td>
<td class="nomenc_text">Flexible shaft coupling, Type C : clamp style, size : 17, left bore = 3 mm,right bore = 3 mm</td>
</tr>
<tr class="nomenc_tr_1">
<td class="nomenc_title">Part number</td>
<td class="nomenc_text">C172903000300</td>
</tr>
</tbody></table>
var npm = this.getHTML('td.nomenc_text:nth-child(2)');
Answer the question
In order to leave comments, you need to log in
Isn't it necessary to write td.nomenc_text:nth-child(3) to get the third value from the selection?
ZY XPath tried?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question