limitations of xpath to distinguish and locate web elements on page

Posted by wefwgeweg on Stack Overflow See other posts from Stack Overflow or by wefwgeweg
Published on 2010-04-21T02:34:09Z Indexed on 2010/04/21 2:43 UTC
Read the original article Hit count: 352

Filed under:
|

are there any alternatives to Xpath ? need to locate and extract specific element's texts for web scraping project.

xpath seem pretty limited against layout changes on web pages. slight shuffle, and xpath no longer works. also different browsers have different Xpaths as i discovered. Firefox automatically adds tbody after table, while IE doesn't and so on.

© Stack Overflow or respective owner

Related posts about xpath

Related posts about alternative