I\'m XPath-ing through a web page with NOKOGIRI. I\'m familiar with XPath, but I cannot figure out why my XPath fails to pick up the specific row. See the ruby code.
The <tbody>
tag is an optional tag which is implicit if it is omitted. This means the <tbody>
tags are inserted automatically by the browser when not present. They are not in the source code in your example, so nokogiri doesn't know about them.
Firebug uses the generated DOM, which does contains the tbody
elements, so the statement does match inside a browser.
Remove both the tbody
selectors and you should be fine.