A web element locator tool for XPath and CSS selectors with real-time highlighting and property extraction features.

Latest Version

Version
1.0
Update
March 1, 2025
Size
75.13KiB
Developer
Category
Users
0
Rating
0 ★
Manifest Version
3
Web Store Status
Languages Support
English
中文 (简体)
See more
Permissions
ActiveTab
Scripting
ContextMenus
SidePanel
ClipboardWrite
Storage
See more

XPath Locator Extension

# XPath Locator

## Overview
XPath Locator is a professional web element locator tool designed specifically for automation testers and web scraping developers. It provides multiple locating methods, real-time highlighting, property extraction, and history tracking features to make element location more efficient.

## Key Features

### 1. Multiple Locating Methods
- XPath (both relative and absolute paths)
- CSS Selectors
- JavaScript Path
- jQuery Selectors
- TestRigor Path
- Index-based XPath
- ID, Name, Class, and other attributes

### 2. Real-time Element Inspection
- Click the inspect button to highlight elements on mouse hover
- Real-time display of element properties
- HTML preview support
- Visual element highlighting

### 3. Smart Locator Generation
- Automatically generates optimized locator expressions
- Supports both relative and absolute paths
- Optimized locating strategies for different element types
- Intelligent parent-child relationship analysis

### 4. Quick Copy Features
- One-click copy for any locator expression
- Copy element's complete HTML structure
- Context menu integration for quick copying
- Clipboard operation with success notifications

### 5. Validation & Testing
- Built-in XPath syntax validation
- CSS selector syntax checking
- Real-time element finding and highlighting
- Immediate feedback on locator validity

### 6. History Tracking
- Automatically saves frequently used locators
- Quick access to previous searches
- History management with clear functionality

### 7. User-Friendly Interface
- Clean and intuitive sidebar panel
- Easy-to-use inspection mode
- Clear property organization
- Responsive design

## Use Cases
- Selenium test automation
- Playwright script development
- Web scraping projects
- UI test automation
- Element property analysis
- DOM structure inspection

## Technical Details
- Supports all modern browsers
- Lightweight and performance-optimized
- No external dependencies
- Cross-origin compatible
- Real-time processing

## Support
For bug reports or feature requests, please visit our GitHub repository or contact our support team.

Note: This extension is designed for development and testing purposes. Please ensure you have necessary permissions when using it on web pages.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "__MSG_extensionName__", "description": "__MSG_extensionDescription__", "version": "1.0", "default_locale": "en", "permissions": [ "activeTab", "scripting", "contextMenus", "sidePanel", "clipboardWrite", "storage" ], "host_permissions": [], "background": { "service_worker": "src/background/service-worker.js" }, "side_panel": { "default_path": "src/sidepanel/sidepanel.html" }, "content_scripts": [ { "matches": [""], "js": [ "src/utils/logger.js", "src/utils/locator.js", "src/content/searchHighlighter.js", "src/content/elementHighlighter.js", "src/content/contentScript.js", "src/content/menu.js" ], "css": [], "run_at": "document_idle" } ], "icons": { "16": "icons/icon16.png", "32": "icons/icon32.png", "48": "icons/icon48.png", "128": "icons/icon128.png" }, "web_accessible_resources": [{ "resources": [ "src/config/config.js", "src/utils/locator.js", "src/utils/i18n.js", "src/utils/logger.js" ], "matches": [""] }]} "
Read more

How to download and manually install XPath Locator extension for Chrome

Looking for a way to install XPath Locator extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install XPath Locator extensions manually, this article outlines two simple methods to effortlessly install XPath Locator extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download XPath Locator extension and manually install through Drag &Drop

If you ever need to manually install a XPath Locator extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the XPath Locator Extension by clicking the "Download CRX" button on the website.

Look for the XPath Locator extension you wish to install. Go to the website and download the XPath Locator extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for XPath Locator extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the XPath Locator extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download XPath Locator extension for Chrome and install in Developer Mode

This is another method to install XPath Locator extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the XPath Locator extension file

Select and download the XPath Locator extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the XPath Locator extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your XPath Locator extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the XPath Locator extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install XPath Locator extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

WPS PDF - Read, Edit, Fill, Convert, and AI Chat PDF with Ease Extension · Productivity 0 110 ★ 6.01MiB

icon

Shazam: Find song names from your browser Extension · Productivity 0 22855 ★ 587KiB

icon

IE Tab Extension · Productivity 0 19117 ★ 940KiB

icon

Sider: ChatGPT Sidebar + GPT-4o, Claude 3.5, Gemini 1.5 & AI Tools Extension · Productivity 0 68759 ★ 13.41MiB

icon

Google Dictionary (by Google) Extension · Productivity 0 13680 ★ 47.37KiB

icon

BetterTTV Extension · Productivity 0 10377 ★ 657KiB

icon

Google Input Tools Extension · Productivity 0 5372 ★ 734KiB

icon

Video DownloadHelper Extension · Productivity 0 22351 ★ 1.36MiB

icon

Take Webpage Screenshots Entirely - FireShot Extension · Productivity 0 43664 ★ 12.14MiB

icon

Monica: ChatGPT AI Assistant | GPT-4o, Claude 3.5, Gemini 1.5, o1 &More Extension · Productivity 0 17928 ★ 23.98MiB

icon

Smallpdf—Edit, Convert, Compress, & AI Summarize PDF Extension · Productivity 0 2967 ★ 1.15MiB

icon

QR Code Generator Extension · Productivity 0 225 ★ 302KiB

icon

Lightshot (screenshot tool) Extension · Productivity 0 6925 ★ 685KiB

icon

ChatGPT for Google Extension · Productivity 0 3642 ★ 11.17MiB

icon

Immersive Translate - Translate Web & PDF Extension · Productivity 0 1114 ★ 3.19MiB

icon

AIPRM for ChatGPT Extension · Productivity 0 2809 ★ 313KiB

icon

Ecosia - The search engine that plants trees Extension · Productivity 0 2394 ★ 33.62KiB

icon

Pie Adblock: Block Ads, Get Paid Extension · Productivity 0 3198 ★ 6.49MiB

icon

Enhancer for YouTube™ Extension · Productivity 0 15709 ★ 426KiB

icon

Scrnli - Screen Recorder & Screen Capture App Extension · Productivity 0 9370 ★ 3.16MiB

icon

BlockSite: Block Websites & Stay Focused Extension · Productivity 0 29776 ★ 18.42MiB

icon

YouTube Summary with ChatGPT & Claude Extension · Productivity 0 1829 ★ 894KiB

icon

Wordtune: AI Writing, Paraphrasing, and Grammar Tool Extension · Productivity 0 2397 ★ 2.79MiB

icon

Keywords Everywhere - Keyword Tool Extension · Productivity 0 5672 ★ 776KiB