I want to select all the light elements which are descended with id = "liveDeal152_dealPrice". How do I do it with xpath?
Here is a sample HTML
& lt; Ul & gt; & Lt; Li id = "liveDeal_152" & gt; & Lt; P class = "value" & gt; & Lt; Them & gt; | & Lt; Span class = "WebRupee" & gt; One ?? ¹ & lt; / Span & gt; & Lt; Span id = "liveDeal152_dealprice" & gt; 495 & lt; / Span & gt; & Lt; / P & gt; & Lt; / Li & gt; & Lt; Li id = "liveDeal_152" & gt; & Lt; P class = "value" & gt; & Lt; Them & gt; | & Lt; Span class = "WebRupee" & gt; One ?? ¹ & lt; / Span & gt; (Price hidden) & lt; / P & gt; & Lt; / Li & gt; & Lt; / Ul & gt;
// li [.// span [@id = 'liveDeal152_dealPrice ']] or more word-expression, but close to your verbal description // li [descended: span [@id =' liveDeal152_dealPrice ']] .
No comments:
Post a Comment