Skip to content

riko2chen/xpath_tools

Repository files navigation

XPath Tools

Release Build Twitter Xiaohongshu

中文说明

XPath Tools is a Chrome extension for inspecting web page elements and generating stable XPath selectors in a Side Panel workflow.

It helps you inspect the current element with Shift + Hover, compare multiple XPath candidates, edit XPath directly, and verify the matched result on the page in real time.

Screenshot

XPath Tools Side Panel

Installation

There are currently 3 ways to install this extension.

1. Chrome Web Store

Recommended for most users.

Now available: https://chromewebstore.google.com/detail/xpath-tools/dgcngfeodlpcgpihinndjhabeifmjcmc

Search and install by text:

  1. Open Chrome
  2. Search for XPath Tools Chrome extension or XPath Tools in Google
  3. Open the Chrome Web Store result named XPath Tools
  4. Confirm the publisher and extension name match
  5. Click Add to Chrome
  6. Approve the install prompt

After installation, click the extension icon to open the Side Panel.

2. Download from GitHub Releases

Recommended if you prefer manual installation or need an unpacked local copy.

  1. Open the Releases page: https://github.com/riko2chen/xpath_tools/releases
  2. Download the latest release package
  3. Unzip the downloaded file to a local folder
  4. Open chrome://extensions
  5. Turn on Developer mode
  6. Click Load unpacked
  7. Select the unzipped extension folder

After loading, click the extension icon to open the Side Panel.

3. Build It Yourself

  1. Clone or download this project
  2. Install dependencies
npm install
  1. Build the extension
npm run build
  1. Open chrome://extensions
  2. Turn on Developer mode
  3. Click Load unpacked
  4. Select the dist/ folder in this project

Features

  • Inspect page elements with Shift + Hover
  • Generate a unique Best Match XPath for the selected element
  • Show More Options when multiple usable XPath candidates are available
  • Edit XPath directly and update the page highlight in real time
  • Support manual injection and auto injection while the Side Panel is open
  • Support theme switching and 20 UI languages
  • Support quick copy with toast feedback

Support

Buy Me a Coffee

Open source URL: https://github.com/riko2chen/xpath_tools

Buy Me a Coffee URL: https://buymeacoffee.com/rikochen

Buy Me a Coffee QR:

Buy Me a Coffee QR

WeChat QR:

WeChat QR

About

This is a Chrome Web Store extension that allows you to easily find the XPath of various elements. Key features include: 1. Multiple alternative XPath options 2. Customizable themes 3. Easy copying for immediate use

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors