Watir can find a text on a page:
<span id="i1" name="n1>Some Text</span>
e.text.include?("Some Text")
But how can I get the name or id of the span, when I only know "Some Text"
e.text.findInPage("Some Text").parentElement.id (should be "i1")
e.text.findInPage("Some Text").parentElement.name (should be "n1");
Something like this exists in watir?