SelectorsHub
v5.8.9
·
💾 大小 676KiB
·
🕒 2 天前更新
📸 界面截图预览 (5)
📝 应用描述
同步自官方商店Locators Plugin to Auto Generate and Verify Playwright Locators, XPath & CSS Selectors.
SelectorsHub - Auto-generate Playwright Locators, XPath & CSS Selectors SelectorsHub is a powerful developer tool that automatically generates and verifies Playwright locators, XPath, and CSS selectors for web automation testing.
Key Features: 1. Auto-generation: Instantly generates multiple selector types including native Playwright locators, XPath, CSS selectors, IDs, names, and more. 2. Advanced element support: Works seamlessly with iframes, Shadow DOM, SVG elements, dynamic elements, dropdowns, and complex UI components. 3. Smart suggestions: Auto-suggests attributes, text values, and occurrences to help you build selectors faster—no more copying and pasting from the DOM. 4. Error detection: Provides clear error messages indicating what's wrong with your XPath or CSS selectors. 5. Element highlighting: Automatically highlights matching elements and scrolls them into view for easy verification. 6. XPath Healing: Verify all the xpath in one shot. 7. Locators Page: Generate Locator Page in one go.
How to Use: 1. Open Chrome DevTools (F12 or right-click > Inspect) 2. Navigate to the SelectorsHub tab in the DevTools sidebar, or click the SelectorsHub icon in your browser toolbar 3. Inspect any element to automatically generate all selector types 4. For Playwright locators, click the "Playwright Selectors" button, then inspect the element 5. Type or edit selectors in the input box—smart suggestions will help you complete them quickly 6. Press Enter to verify and highlight all matching elements on the page
Perfect for: a) QA Engineers and Test Automation professionals, b) Web developers working with Playwright, Selenium, Cypress, or other testing frameworks c) Anyone who needs reliable, maintainable element selectors
Support: Questions or feedback? Contact us at support@selectorshub.com
📖 概述与深度评测
中文精编实测🎯 解决什么核心痛点?
在网页自动化测试和爬虫开发中,开发者需要花费大量时间手动编写和调试XPath/CSS选择器,传统方法需要反复查看DOM结构、复制粘贴元素属性,遇到动态元素或复杂组件时调试效率极低。SelectorsHub通过智能生成和即时验证,解决了元素定位不准确、调试耗时的核心痛点。
✨ 核心功能特性拆解
- ● ✅ 一键生成Playwright定位器/XPath/CSS选择器
- ● ✅ 智能错误检测与XPath自动修复
- ● ✅ 支持iframe/ShadowDOM等复杂元素
- ● ✅ 可视化元素高亮与滚动定位
👍 实测突出优势
- ✓生成速度比手动编写快5倍以上
- ✓错误提示清晰减少调试时间
- ✓完美支持最新前端框架组件
👎 局限与注意事项
- !对极度动态化的单页应用仍需人工微调
🛡️ 权限信息与隐私安全审计 (2 项权限)
Manifest V3 静态代码扫描通过
以下权限直接提取自 SelectorsHub 选择器生成器 官方安装包内的 manifest.json 声明文件:
storage
在本地保存用户配置偏好
activeTab
仅在点击插件时读取当前页面内容
⚖️ 同类插件横评对比:该选哪一个?
仅提供基础XPath生成,缺乏智能修复和Playwright支持
交互更简单但功能单一,不支持现代前端框架
💯 常见问题与离线安装排错 (FAQ)
Q:是否支持React/Vue动态组件?
A:完全支持,可自动识别虚拟DOM生成稳定选择器
Q:生成的定位器会随页面更新失效吗?
A:内置智能算法可生成抗变化的稳健选择器
Q:离线安装时提示 [程序包无效:CRX_REQUIRED_PROOF_MISSING] 怎么办?
A:这是新版 Chrome/Edge 针对离线拖拽 .crx 的安全限制。最简单的解决办法是:直接点击本页顶部的 「📦 下载 .ZIP 免转换包」,将其解压为一个普通文件夹,然后在浏览器打开 chrome://extensions 开启右上角「开发者模式」,点击左上角「加载已解压的扩展程序」选中该文件夹即可 100% 成功安装!
💬 用户口碑与一键表态
无需打字,戳一下即可表态⚡ 一键表态
勾选符合的项,最后统一提交一次即可。🎖️ 开发者收录与安全认证徽章 (GitHub Badge)
欢迎将该扩展的实时安全评级徽章嵌入您的 GitHub README 或博客文章中: