Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
LocatorLens – Smart Locator Automation 预览

LocatorLens – Smart Locator Automation 作者: Yogesh

Inspect any element and instantly get ranked, copy-ready Playwright, Selenium, and Cypress locators. Built for QA engineers who want stable, maintainable test automation selectors — not brittle XPaths.

5(1 条评价)5(1 条评价)
12 个用户12 个用户
下载 Firefox 并安装扩展
下载文件

扩展元数据

关于此扩展
LocatorLens is a precision developer tool built for QA engineers and automation testers. Hover over any element on any webpage, click to capture it, and instantly get ranked, copy-ready locators for Playwright, Selenium, and Cypress — all from one sidebar panel.

⚡ How It Works

Click "Start Inspecting" from the popup or sidebar.
Hover over any element — a live overlay highlights it with tag and attribute info.
Click to capture — ranked locators appear instantly in the sidebar panel.
Copy the best one with a single click. Done.
🛡️ Stability-Ranked Locators Not all locators are equal. LocatorLens automatically ranks every suggestion: • ★ BEST — getByTestId(), getByRole(), getByLabel() — survive UI redesigns. • ✓ GOOD — getByPlaceholder(), getByText(), getByAltText() — reliable with caveats. • ~ OK — CSS ID selectors, name attributes — acceptable fallbacks. • ✗ AVOID — Auto-generated class names (styled-components, MUI, etc.) — flagged with warnings.

🛰️ Multi-Framework Support Switch between Playwright, Selenium, and Cypress with a single dropdown. Locators translate instantly into the correct syntax for your chosen framework.

🧬 Shadow DOM X-Ray LocatorLens pierces Shadow DOM boundaries automatically. The Deep-Trace Engine detects Shadow Roots and generates working locators for encapsulated Web Components that other tools can't reach.

🕹️ DOM Navigation Use Arrow Up/Down keys to traverse parent and child elements — even across Shadow DOM boundaries. Navigate the full DOM tree without leaving the inspector.

🔬 Selector Validation Lab Paste any CSS selector or XPath into the built-in lab. It validates against the live DOM, highlights matching elements, and reports the match count — perfect for debugging flaky selectors.

💡 Why This Exists Brittle locators are the #1 cause of flaky test automation. LocatorLens solves this by always recommending the most stable, semantic locator first — the same way Playwright's own documentation recommends.

🔒 Privacy No data is collected, transmitted, or stored externally. Everything runs locally in your browser. Zero telemetry, zero tracking.
评分 5(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
1
4
0
3
0
2
0
1
0
阅读全部 1 条评价
权限与数据

必要权限:

  • 获取浏览器标签页
  • 访问您在所有网站的数据

可选权限:

  • 访问您在所有网站的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 用户支持网站
  • 支持邮箱
  • Copy add-on ID
版本
1.1.3
大小
67.77 KB
上次更新
1 个月前 (2026年4月6日)
相关分类
  • 网页开发
  • 搜索工具
许可证
MIT 许可证
版本历史
  • 查看所有版本
标签
  • search
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。