Extract, edit, and evaluate XPath queries with ease.
XPath Helper makes it easy to extract, edit, and evaluate XPath queries on any webpage.
IMPORTANT: After installing this extension, you must reload any existing tabs or restart Chrome for the extension to work.
Instructions:
1. Open a new tab and navigate to any webpage.
2. Hit Ctrl-Shift-X (or Command-Shift-X on OS X), or click the XPath Helper button in the toolbar, to open the XPath Helper console.
3. Hold down Shift as you mouse over elements on the page. The query box will continuously update to show the XPath query for the element below the mouse pointer, and the results box will show the results for the current query.
4. If desired, edit the XPath query directly in the console. The results box will immediately reflect your changes.
5. Repeat step (2) to close the console.
If the console gets in your way, hold down Shift and then move your mouse over it; it will move to the opposite side of the page.
One word of caution: When rendering HTML tables, Chrome inserts artificial <tbody> tags into the DOM, which will consequently show up in queries extracted by this extension.
Latest reviews
- (2023-11-13) Michael Charvet: I'm not getting results from this at all, literally nothing in the interface when I selection an element on a web page.
- (2023-09-12) marswillrule: I use it all the time, but I hate when I accidentally change the position and lose the path I'm putting together. Very frustrating.
- (2023-06-21) 吴罗平(lopins): 可以优化一下:Xpath路径缩短,使用最优最短路径且保证唯一性
- (2023-05-26) Denis Alain: Fonctionne bien et aide à déchiffrer le Xpath
- (2023-04-08) Daniel Berrios: Hasta ahora, se ha convertido en mi herramienta favorita para usar rutas xpath. ¡Funciona muy fácil!
- (2023-02-09) Matt Jennings: If you want to test xpaths, this is the tool to use.
- (2023-02-04) Christopher Johnson: Doesn't work. Interface not showing up at all. Useless extension. Don't waste your time.
- (2023-01-18) Semen Orlov: It works Ok, but it's quite difficult open extension while a page is loading.
- (2022-12-11) Andrea De Simone: doesn't work with dynamic IDs, should have an option to select by element position rather than IDs
- (2022-11-27) rehab business EG: Nice!
- (2022-07-04) K T: 对于新手很好
- (2022-05-27) Bear Biu: 简单好用!!不需要F12就能直接用了,也不用头大的看着一堆html代码了。按shift直接就能把某个元素的xpath根路径提取出来,还能直接编辑测试,完全满足我的需求。
- (2022-03-18) cas lu: 特好用,在抓取一些资源的时候,对我的帮助很大!
- (2022-01-19) Angelia Van: 刷新页面界面就会消失,如何保持页面不消失呢
- (2021-12-23) 安卡: 很实用,用来检测表达式
- (2021-11-25) Jan Haubold: Does what it should
- (2021-10-30) Carlos Rey: not working
- (2021-09-30) Takuya Matsuda (maztak): 機能しますがたまに新しくタブで開いたり再読み込みしないと機能しないときがあるようです。また実際はHTMLタグも含めて抽出されるのにResultではtext()が表示されちゃうなど若干の実際との挙動違いがあるので星4つ。
- (2021-09-06) Dwza (Dwza): Does not work at all
- (2021-08-16) Andrei Andreichuk: Does exactly what is needed with no alternative I am aware of. Simple and great in it! No bells and whistles needed.
- (2021-06-03) Bavithra Raju: best xpath finder out there
- (2021-05-31) F S: not working
- (2021-04-25) Joe Ferrar: waste, block the entire view of webpage, there are much advanced xpath tool.
- (2021-04-08) Robch Devio: Broken - simply does not work. Time waste.
- (2021-04-08) Brave Johen: This is not working at all. Found super advanced XPath tool - SelectorsHub. https://chrome.google.com/webstore/detail/selectorshub/ndgimibanhlabgdgjcpbbndiehljcpfh/
- (2021-04-08) This is very old and outdate, recently got new xpath extension SelectorsHub which is very advanced.
- (2021-04-01) GAMI: 搞爬虫的非常喜欢!
- (2021-03-24) Lai yanlin: very good
- (2021-03-19) FS Zhang: 按某个键后xpath会从默认的上方突然跑到屏幕下方,有人知道如何恢复位置吗?
- (2021-03-17) Viktor Engelmann: Very useful. My suggestion: let it create a XPath and then edit that XPath inside the textbox.
- (2021-03-15) selgooGfOenoN ssenisuB: No longer works. Clicking the toolbar icon does nothing.
- (2021-01-29) Chung-lai Chan: Thank you for the excellent working to use Shift key to select path in order to be more patient. Excellent work.
- (2020-11-14) Pallabi Bhargava - lost job in covid: Surprised still people using this old plugin. Try this Next Gen XPath tool SelectorsHub which is super powerful and huge time saver. SelectorsHub is the highest rated XPath tool and it has features like auto suggest attribute, auto generated xpath, shadow dom, proper error message for wrong xpath, svg support and iframe support and much more. https://chrome.google.com/webstore/detail/selectorshub/ndgimibanhlabgdgjcpbbndiehljcpfh/
- (2020-11-13) Ruizhi Wang: 挺好的,比正则舒服多了……正则可读性太差
- (2020-10-16) Andrei Khotko: Не открывается расширение на большинстве сайтов. Пойду устанавливать firefox
- (2020-10-09) EpicPl: not working at all
- (2020-09-30) Mark Pederson: Granted I only have experience using this XPath tool, but it did exactly what I needed converting lists into exportable tables! Thank you for developing it!
- (2020-09-24) Владимир Летушко: Отличное приложение!
- (2020-09-16) Ravi Salunkhe: Amazing! Thanks for all your efforts!
- (2020-09-09) mirsad bitgrip: Not working on MacOS Catalina and Chrome 84.0
- (2020-08-23) Guillaume Greffe: Great extension, just need to change how to move the XPath window to make it perfect. I regularly lose my work by hovering over with the shift key pressed.
- (2020-08-18) Ludmila Zarudneva: Пол часа пишешь xpath, а потом случайно нажимаешь на Shift чтобы набрать скобочку и все, пиши по новой.. хоть бы ctrl+z какой прикрутить или комбинацией сделать, ctrl+shift например. Очень расстраевает.
- (2020-08-18) 黄伟: 挺好用的,但是最近浏览器更新了为什么插件不好用了?点击无反应,反复卸载安装了很多次,还是无法打开
- (2020-06-27) Manoj: It's good but doesn't work on elements inside iframes. Please suggest on how to make this work inside iframes.
- (2020-04-04) Tobias Weihmann: A simple, but very useful tool. The UI of course is very basic, but developers won't have difficulties using it.
- (2020-04-01) Martha Kharitonova: Очень помогло на стадии изучения XPath селекторов. А главное, динамически все сам подхватывает. Спасибо!
- (2020-04-01) 彳亍: 想不到还有这么好用的东西,现在才发现,这个真的挺方便的
- (2020-03-07) Gary Weng: 很有用,很难用
- (2020-03-01) 汪刘: 不知道为什么,一会能用一会又用不了
- (2020-02-22) 日月为易: 太好用了,这样爬虫就轻松多了,非常感谢作者。