This forum is no longer active. Please post your questions to our new community site
Nokogiri has problems building child nodes
|
|
Hi Folks – Having some trouble w/ Nokogiri & its handling of xpaths and So I’m trying to access a form’s action URL so that I can construct my What I’ve discovered is that, once I hit a particular div tag, which The page has HTML to this effect: Note the form doesn’t have an ID or class by which to directly reference sublnk = page.xpath(“//div[@id=‘app-#{code}’]”) If I call children() on that, it’s empty. But the parent of this node sublnk = Additionally, accessing the form directly via its index won’t work sublnk = page.xpath(“//form2/@action”) …and still get nothing. It’s as if this node just doesn’t exist to Thanks! |
|
|
Hi, I recommend you to post a question on Nokogiri mailing list. I have tested the sample code from nokogiri.org page and everything works fine. Please let us know once you figure what the problem is. Thanks, |

