XPath and tbody
Posted: February 12, 2011 Filed under: Uncategorized | Tags: gotchas Leave a commentFirebug has one great feature that Chrome developer tools lack – ability to copy XPath of inspected element. It’s especially useful when writing HTML grabbers using lxml, but it has one gotcha – when inspecting a table Firefox will recreate full DOM structure using tbody tag, but most of the pages in real world don’t have it. So you need to check actual page source and remove tbody from XPath if needed.