#75 ✓resolved
Zach Dennis

undefined method 'path' for Hpricot::Element

Reported by Zach Dennis | November 26th, 2008 @ 09:39 AM

In master if you revert to parsing with Hpricot there's a chance you'll get an error for an Hpricot::Element not having the method 'path'.

require 'hpricot'
Webrat.configuration.parse_with_nokogiri = false

This appears to be in field.rb down on line 45/46ish, where Field#path calls @element.path. Sorry I don't have a path or failing spec to patch. Don't shoot the messenger ;)

Comments and changes to this ticket

  • Bryan Helmkamp

    Bryan Helmkamp November 26th, 2008 @ 02:20 PM

    • State changed from “new” to “open”

    Thanks, Zach. It appears my recent attempt to start using XPath more heavily didn't play out so well for JRuby.

    The specs are failing in Trunk, which I think are covering this issue well. If you have JRuby installed, you should be able to run:

    rake spec:jruby

  • Bryan Helmkamp

    Bryan Helmkamp November 28th, 2008 @ 02:28 PM

    • State changed from “open” to “resolved”

    This is resolved in trunk now.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket