Is there a way to use XPath in Ruby without specifying the tag?
For example, I want to get all elements whose class contains 'trow1'. Not just tr, as the code below is doing:
doc.xpath("//tr[contains(@class,'trow1')]")
Is there a way to use XPath in Ruby without specifying the tag?
For example, I want to get all elements whose class contains 'trow1'. Not just tr, as the code below is doing:
doc.xpath("//tr[contains(@class,'trow1')]")