Nitobi
About Nitobi
Services
Products
Home -> Blogs -> Dave Johnson

Dave Johnson

Firebug “Copy XPath”

June 6th, 2007

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.

Del.icio.us

This entry was posted on Wednesday, June 6th, 2007 at 1:10 am and is filed under Uncategorized, rails, ruby, ror, hpricot. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

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!

Leave a Reply


Search Posts

Pages

Archives

Categories

All contents are (c) Copyright 2006, Nitobi Software Inc. All rights Reserved
Dave Johnson Entries (RSS) and Comments (RSS).