XPath Tool
ID
cpcnmjjlfdpicppncnambopmefpienejGet elements through XPath, support click to get individual elements, intelligent get similar elements Xpath
Informació de l'extensió
Captures de pantalla
Descripció
Get elements through XPath, support click to get individual elements, intelligent get similar elements Xpath
Extension features: Get elements using XPath expressions. Click one element to get its XPath, or click two elements to intelligently generate an XPath for similar elements. The extension cannot be used in the Chrome Web Store or browser settings pages; open another website to use it.
—— V1.8 July 16, 2026
Major update
• Changed the extension panel from an in-page floating window to the browser sidePanel to avoid obstructing page content and operations.
• Added support for cross-origin iframe and ShadowRoot elements.
XPath generation improvements
• Improved: Refactored XPath generation with candidate scoring to prioritize more stable and accurate expressions. Avoids overly broad expressions, random hash class names, CSS module suffixes and unstable attributes; handles dynamic IDs using stable prefixes and adds necessary attribute or text constraints to generic tags such as span and div to reduce false matches.
• Improved: Similar-element XPath generation no longer relies simply on positions or broad parent nodes.
• Improved: Capture shortcut hints remain visible, with a shortcut to browser keyboard shortcut settings.
• Improved: Once the XPath extension panel is open, it can be used after switching tabs without reopening it.
• Added: Freeze the page to hold currently displayed elements in place for capture, useful when elements appear briefly and disappear. Shortcut: Ctrl+Shift+F, configurable.
• Added: Cross-origin iframe support. Generated XPath is split across multiple lines, locating the iframe first and then the element inside it; it can be copied directly into the 影刀 element editor's XPath field.
• Added: Support for open shadow-root elements. Generated XPath uses the format specific to 影刀 RPA and can be copied directly into the 影刀 element editor's XPath field.
• Added: Repeated list structure recognition, inferring similar list items and the target relative path from two selected elements.
• Added a Regenerate button to generate a different XPath from the currently selected elements.
• Added: The five most recent XPath entries are retained when regenerating; click a history entry to restore it quickly.
• Fixed: After switching tabs, operations no longer affect elements in the old tab. XPath validation and capture always apply to the active tab.
• Fixed: On some webpages, altered extension styling prevented XPath input or copying.
Validation and highlighting improvements
• Improved element validation display.
• Fixed highlight boxes becoming misaligned after scrolling.
• Fixed old red borders remaining when recapturing elements.
• Closing the extension or clearing highlights also removes highlighting from the page.
—— V1.7 October 31, 2025
1. Added element selection shortcuts: Ctrl+Shift+X for a single element and Ctrl+Shift+S for similar elements. Find Xpath Tool under browser extension management keyboard shortcuts to change them.
2. Improved validation highlighting with an animated dashed outline.
3. Improved display of matching images or SVGs; images can now be viewed directly in the results area.
4. Improved single-element capture to avoid matching multiple elements. When a candidate XPath is not unique, a relatively stable anchor-and-index path is used instead.
5. Fixed the panel appearing before selection was complete after clicking the capture button.
6. Fixed the blue capture border remaining after capturing a single element.
7. Fixed element borders being unclear or obscured during capture and validation.
—— V1.6 April 28, 2025
1. Fixed an issue where closing the panel immediately after clicking the element capture button left selection mode active and prevented page interaction.
2. Added iframe support. When an element is inside an iframe, the XPath for both the iframe and its internal element is displayed (cross-origin iframes are not supported).
3. Added individual validation. When multiple elements are found, clicking an element in the results area automatically scrolls it to the center of the window and highlights it with a flashing effect.
4. Improved match results by showing element attributes. When there are many results, only some are initially shown; scroll to the bottom and click to see more for all matches.
5. Improved element selection:
5.1 The panel is hidden during selection and restored afterward.
5.2 Selection mode exits automatically after 30 seconds to prevent it from getting stuck.
5.3 Press ESC during selection to exit selection mode.
6. Improved validation styling to make it more prominent and visually appealing.
7. Improved all pop-ups so they can be dragged.
8. Improved the extension UI and animations.
—— V1.5 April 5, 2025
1. Fixed the panel obstructing webpages on some sites; it is now a draggable floating panel.
2. Added documentation for common XPath expressions, which can be viewed and copied by clicking a button in the panel.
3. Added element validation: after obtaining an XPath, click the validation button to highlight and flash the located elements on the page.
4. Fixed an issue where clicking the extension icon a second time did not close the panel.
—— V1.4 March 16, 2025
1. Added display of the output result's type.
2. Fixed XPath expressions being unable to locate element attributes.
3. Fixed the absence of feedback after clicking the copy button.
4. Added a feedback group, accessible by clicking 'About' in the extension panel. Questions and suggestions are welcome.
5. Added detailed error messages for incorrect XPath expressions.
6. Improved the language used in the extension panel and prompts when English is selected.
—— V1.3 March 12, 2025
1. Improved the panel layout for easier operation.
2. Added English language support.
3. Improved the About and donation modal dialogs and adjusted their opening behavior to prevent multiple dialogs from stacking.
—— V1.2 March 7, 2025
1. Improved the logic for obtaining XPath for similar elements, allowing an XPath to be generated even when the two elements have different parents.
2. Improved the match results box: matching images can be displayed directly, and the box height is fixed to avoid loss of focus.
3. Fixed the extension panel obscuring the top of the original webpage.