I was doing this manually and then I got stuck and I can't figure out why it's not working. I downloaded xpather and it is giving me: /html/body/center/table/tbody/tr[3]/td/table as the path to the item I want. I have manually confirmed that this is correct but when I paste it into my code, all it does is return nil
Here is my code:
a = parentdoc.at_xpath("//html/body/center/table/tbody/tr[3]/td/table[1]")
puts a
If I do something like this:
a = parentdoc.at_xpath("//html/body/center")
puts a
I get a huge chunk of text from the page. I can keep adding elements until I hit tbody then it returns nil again. I even tried something like: //html/body/center/table/*/tr[3] and that did the same thing returning nil
What am I missing?