Skip to content
Ask Claude about any Chrome extension, answered with Ext Watch data. See how →
Developer Tools extension

XPath Generator

Generates unique XPath for elements on hover.

by likang4179 · 1 listing

Add to RadarChrome Web Store Free plan tracks 1 extension · no card
extwatch.com/extensions/xpath-generator-hhmnokbdjlfjcgmabdkjimkbidomjdcg
XPath Generatorlikang4179 · Developer ToolsMedium access
Users
11
#17,021 of 31,410 in category
Rating
5.00
1 rating · median 4.63
Version
1.0
30.74 KiB · Manifest V3
Access
Medium46/100
4 permissions + every website
From the store listing

Screenshots

1 image from the publisher

XPath Generator screenshot 1

Description

As written by the publisher on the store

📝 详细说明 (Detailed Description)
XPath Generator (智能 XPath 定位助手) 是一款专为自动化测试工程师、爬虫开发者及前端开发者打造的强效浏览器辅助工具。它摒弃了传统浏览器生成的冗长且脆弱的绝对路径,创新性地结合了 Robula+ 算法 与 前沿视觉大模型 (AI VLM),能够以人类的视角智能分析 DOM 结构和页面视觉,为您生成最短、最易读且最具弹性的 XPath 定位器。

无论您是在编写 UI 自动化脚本(Selenium, Playwright, Cypress),还是在进行网络数据抓取,XPath Generator 都能为您节省大量调试和维护元素定位的时间。

✨ 核心功能特性:

🤖 1. 独创的 AI 视觉辅助定位 (VLM Vision-based Locator)

自然语言到定位器:遇到极难定位的复杂图表、动态弹窗或完全没有特征属性的元素?只需输入自然语言描述(如:“找到登录表单中的忘记密码按钮”),插件会自动截取当前屏幕,并将其发送给视觉大模型处理。
多模型生态支持:原生支持集成 阿里云通义千问视觉大模型 (Qwen-VL-Max)、OpenAI GPT-4o,同时提供高度自定义的 API 接口,兼容任何支持 OpenAI 格式的本地或云端大模型服务。

所见即所得的 XPath:AI 扮演专家级自动化测试工程师,通过“看”图理解页面上下文,直接返回可用的高优 XPath,突破传统 DOM 获取方式的局限性。

🧠 2. 基于 Robula+ 智能算法

抛弃冗长且容易断裂的路径(如:/html/body/div[2]/div/form/div/span)。
自动生成具备高度语义化和稳定性的 XPath(如://form[@name='login']//input[@placeholder='用户名'])。

🛡️ 3. 高稳定,无惧页面变化

智能属性优选:优先使用稳定的特征属性(如 name, data-testid, placeholder, title 等)。
动态元素过滤:自动识别并剔除会随机变化(如像打包生成的)动态 ID 和毫无意义的干扰 Class,让您的自动化脚本再也不怕前端框架带来的 UI 微调。

祖先元素追溯:当当前元素特征不明显时,算法会自动向上寻找具有稳定属性的父级容器来进行“锚点”相对定位。

⚡ 4. 无极操作,一秒提取

悬停拾取 (Hover Inspector):点击扩展图标开启悬浮模式,鼠标经过元素即可在页面浮窗直接预览生成的 XPath。
快捷键复制:支持通过快捷键 Alt + Shift + X 或按住 Shift + 左键单击 瞬间复制当前 XPath 到剪贴板。

🛠️ 5. 开发者工具 (DevTools) 深度集成

按 F12 打开开发者工具,即可在 Elements (元素) 标签页侧边栏找到专属的 “XPath Generator” 面板。
随着您在 DOM 树中点击选择元素,侧边栏会实时生成对应的智能 XPath。

提供一键 Copy (复制) 以及 Verify (唯一性验证) 节点检查功能。

⚙️ 为什么选择 XPath Generator? 传统的原生 XPath 获取方式往往因为一个不起眼的页面调整就导致自动化脚本全面崩溃。本扩展致力于解决 "Element Not Found" 的痛点,凭借 Robula+ 算法和强大的多模态大模型视力,为您在变化莫测的 Web 页面中寻找“最坚固的锚点”。

⌨️ 快捷键用法提示:

开启/关闭选取模式:点击浏览器右上角插件图标
复制当前 XPath:悬停元素并按 Shift + 左键单击 或 Alt + Shift + X

立刻安装体验,拥抱 AI 时代的新一代测试辅助工具,把寻找繁琐元素的苦差事自动化,将时间留给真正有价值的开发与测试!

这个新加的**第一点(独创的 AI 视觉辅助定位)**特别强调了它的独特性、如何通过屏幕截图+多模态大模型理解页面结构,以及对 Qwen、GPT-4o 和自定义模型的开放生态支持。这也是在插件商店里极为吸睛的一个卖点!

Ratings and reviews

Ratings as the store shows them
Reviews on the store
5.001 rating on the store

No written reviews held for this listing yet.

Radar

Track XPath Generator on Radar

This page shows the listing as it is today. Add it to Radar and get one email when it changes.

  • Users and rating
  • Store text and screenshots
  • Permissions it asks for
Free plan tracks 1 extension · no card
Ext Watch Radar watchlist cards showing tracked extensions with users, rating, version and latest store change
Guide

XPath Generator, in plain words

What it is, what to use instead, what it can access and how to fix it.

At a glance

XPath Generator at a glance

XPath Generator is a Developer Tools extension by likang4179 with 11 users. Chrome Web Store users rate it 5.00 out of 5 from 1 rating, which is still a small sample. By users it sits in the lower half of Developer Tools extensions.

By users
#17,021of 31,410 in Developer Tools
Rating
5.00category median 4.63
Access
Medium46 of 100

XPath Generator alternatives

Closest by what they do · users as the store shows them · bars on a log scale
XPath Generator115.00 ★
xPath Finder50K3.4 ★Xpath Ninja4673.7 ★XPath Generator4535.0 ★Custom Xpath3645.0 ★XPath Inspector1925.0 ★
Permissions

Is XPath Generator safe?

XPath Generator asks for 4 permissions and access to every website. One of them gives wide access.

Permissions show what it could do, not what it does. See the full permission list.

46/ 100Medium access
XPath Generator4 permissions · 1 wide
  • <all_urls>Read and change data on every website

Every permission XPath Generator asks for

4 permissions + every website · 1 sensitive · Medium access overall

Sites

  • Read and change data on every website<all_urls>
  • Read and change data on matching siteshttps://dashscope.aliyuncs.com/*

Browser permissions · 4

  • Work on the tab you click it onactiveTab
  • Run its code on pages it can accessscripting
  • Save its own settingsstorage
  • Open in the side panelsidePanel

Sensitive marks access that reaches your data or other sites. The access level is a 0 to 100 score of all of it: under 25 is Low, 60 and up is High.

Troubleshooting

XPath Generator not working?

What recent reviews say

Store reviews from the last 90 days

We have no recent public signals of problems with XPath Generator.

Common fixes

Try them in this order
  1. 1Update Chrome and the extension
  2. 2Turn it off and on in chrome://extensions
  3. 3Reload the page
  4. 4Turn other extensions off in case two clash

Still stuck? Contact the maker or try an alternative.

300K Chrome extensions in one place

Know when a listing changes

Track any extension on Radar: users, rating, permissions and store text, with one email when something moves.

No credit card neededFree planAsk Claude on Pro