Create XPath queries select similar elements and visualize the results.

Latest Version

Version
4.0.1
Update
April 25, 2020
Size
139KiB
Developer
Category
Users
9,000+
Rating
2.72093 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
ActiveTab
See more

XPath Helper Wizard Extension

XPath Helper Wizard creates xpaths that are short and less likely to break if the website changes.

IMPORTANT: After installing this extension, you must reload any existing tabs or restart Chrome for the extension to work.

If parent Xpath field contains an Xpath then all the subsequent Xpaths are generated relative to that parent Xpath.

How to use the extension:
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 tags into the DOM, which will consequently show up in queries extracted by this extension.

Full Credits to Adam Sadovsky (https://github.com/google/xpaf) for creating a great tool.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "XPath Helper Wizard", "short_name": "XPath Helper Wizard", "version": "4.0.1", "description": "Create XPath queries select similar elements and visualize the results.", "background": { "page": "background.html" }, "browser_action": { "default_icon": { "19": "static/icon_19x19.png", "38": "static/icon_38x38.png" } }, "permissions": ["activeTab"], "icons": { "16": "static/icon_16x16.png", "32": "static/icon_32x32.png", "48": "static/icon_48x48.png", "128": "static/icon_128x128.png" }, "web_accessible_resources": [ "css/bar.css", "bar.html", "js/bar.js", "vendor/underscore/underscore-min.js", "static/*.png" ], "content_security_policy": "script-src 'self' 'unsafe-eval' https://ssl.google-analytics.com; object-src 'self'"}
Read more