Closed Eagerod closed 8 years ago
Looks like something to the tune of //div//img will duplicate all img elements for each div they're nested in.
//div//img
img
div
<div> <div> <img src='/a.png' /> </div> </div>
When run through XPath:
element.xpath("//img").length > 1 element.xpath("//div//img").length > 2
Looks like something to the tune of
//div//img
will duplicate allimg
elements for eachdiv
they're nested in.When run through XPath: