How to get an element using inner text (Watir, Nokogir, Hpricot)
- by Hpriguy
I have been expeirmenting with Watir, Nokogir and Hpricot. All of these use top-down approach which is my problem. i.e. they use element type to search element. I want to find out the element using the text without knowing element type.
e.g.
<element1>
<element2> Text2 </element2>
<element3> Text3 </element3>…