Differences between // and /descendant in XPath selecting multiple children
问题 I can't clearly understand the differences between using //element and /descendant::element when selecting multiple children of a base element in XPath. Given this HTML snippet <html> <body> <div class="popupContent"> <table> <tr class="aclass"><td> Hello </td> <td> <input type="text" value="FIRST" /> </td></tr> <tr class="aclass"><td> Goodbye </td> <td> <input type="text" value="SECOND" /> </td></tr> </table> </div> </body> </html> I need to select each input based on its positioning in the