* Firebug “Copy XPath”

Posted on June 6th, 2007 by Dave Johnson. Filed under Uncategorized, rails, ruby.


I have been playing around with the Ruby plugin Hpricot the last few days while I have been creating a news reading tool. It is pretty darn cool and hopefully I will get my project done this weekend.

However, the point of this post is Just a note for others using Firebug to get XPath expressions for use in Hpricot - don’t do it!!! Well ok, you can do it, but make sure you watch out for any <tbody> elements that Firebug sneaks in there that don’t exist … I spent _way_ too long figuring that one out.

Tags: ,



2 Responses to “Firebug “Copy XPath””

  1. Tero Says:

    Fantastic, removing the tbody elements worked for me!

    Thanks for the hint

  2. Dave Johnson Says:

    I am glad that it was helpful Tero - now my hours of hair pulling have been vindicated!

Trackback URI | Comments RSS

Leave a Reply