Tiện ích trình duyệt Firefox
  • Tiện ích mở rộng
  • Chủ đề
    • cho Firefox
    • Từ điển & gói ngôn ngữ
    • Các trang web trình duyệt khác
    • Tiện ích cho Android
Đăng nhập
Xem trước Web Element Selector Generator

Web Element Selector Generator bởi Cotetiu Madalin

Generate CSS/XPath selectors for elements or a whole page, with ready-to-paste Selenium, Playwright, and Cypress code snippets.

0 (0 đánh giá)0 (0 đánh giá)
Tải xuống Firefox và tải tiện ích mở rộng
Tải xuống tập tin

Siêu dữ liệu mở rộng

Ảnh chụp màn hình
Về tiện ích mở rộng này
Web Element Selector Generator instantly turns any element — or an entire page — into ready-to-use CSS selectors, XPath, and test automation code for Selenium, Playwright, Cypress, and WebdriverIO.

Stop hand-crafting locators in DevTools. Click one element, or scan a whole page at once, and get every selector strategy you need plus copy-paste-ready code in the language and framework you already use — Java, Python, JavaScript/TypeScript, or C#.

PICK AN ELEMENT
• Click an element (with Inspect mode on) or Alt+Click anywhere without blocking navigation
• Right-click any element and choose "Generate selectors for this element"
• Jump straight into Inspect mode with the Alt+Shift+E shortcut

SCAN AN ENTIRE PAGE AT ONCE — NEW
• Open the side panel and scan every link, button, input, form, and test-id-tagged element on the page in a single pass
• Reaches cross-origin iframes, not just your own frame — something most selector tools can't do
• Filter by element category, search by text/tag/selector, and hover any result to highlight it live on the page
• Multi-select elements and export them together as a ready-to-paste Page Object class

GET 8 LOCATOR STRATEGIES PER ELEMENT
• CSS — relative (shortest unique path) and absolute
• XPath — relative and absolute
• CSS attribute-contains and XPath text-contains, for elements with dynamic classes/IDs
• ARIA role/name selector, for accessibility-first testing
• A "recommended" badge automatically highlights the most robust option

GENERATE READY-TO-PASTE TEST CODE — NEW
• Selenium WebDriver: Java, Python, C#, JavaScript
• Playwright: JavaScript/TypeScript, Python, Java, C#
• Cypress and WebdriverIO
• Copy a single locator line, or export a full Page Object class skeleton from a batch of scanned elements

BUILT FOR REAL-WORLD PAGES
• Works inside open shadow roots and same-origin iframes, with clear notes when a selector's scope is limited
• "Validate All" checks every generated selector live against the page and reports match counts
• Keeps a history of your last 25 picks per tab so you can revisit earlier selections
• Configurable attribute priority — prefer data-testid, data-qa, or your own custom attributes
• Export your selection history, or a full page scan, as JSON or CSV

PRIVACY FIRST
Everything runs locally in your browser. No element data, page content, or selectors are ever sent anywhere — history, scan results, and settings are stored only in your own Chrome profile.

Built for QA engineers, SDETs, and automation testers writing Selenium, Playwright, Cypress, or WebdriverIO tests, developers debugging dynamic UIs, and anyone scraping data or auditing pages for accessibility.
Được xếp hạng 0 (bởi 1 người dùng)
Đăng nhập để đánh giá tiện ích này
Chưa có xếp hạng nào

Đã lưu xếp hạng sao

5
0
4
0
3
0
2
0
1
0
Chưa có đánh giá
Quyền hạn và dữ liệu

Quyền hạn bắt buộc:

  • Truy cập hoạt động của trình duyệt trong khi điều hướng
  • Truy cập dữ liệu của bạn trên mọi trang web

Thu thập dữ liệu:

  • Nhà phát triển cho biết tiện ích mở rộng này không yêu cầu thu thập dữ liệu.
Tìm hiểu thêm
Thêm thông tin
Liên kết tiện ích
  • Sao chép ID tiện ích
Phiên bản
1.2
Kích cỡ
37,09 KB
Cập nhật gần nhất
4 ngày trước (31 Thg 07 2026)
Thể loại có liên quan
  • Phát triển Web
Giấy phép
Mọi Quyền Được Bảo Lưu
Lịch sử các phiên bản
  • Xem tất cả phiên bản
Thêm vào bộ sưu tập
Báo cáo tiện ích này
Đi đến trang chủ Mozilla

Tiện ích

  • Giới thiệu
  • Blog tiện ích Firefox
  • Extension Workshop
  • Trung tâm nhà phát triển
  • Chính sách nhà phát triển
  • Blog cộng đồng
  • Diễn đàn
  • Báo cáo một lỗi
  • Hướng dẫn đánh giá

Tải xuống

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Bản dựng mới nhất

  • Nightly
  • Beta

Firefox dành cho doanh nghiệp

  • Enterprise

Cộng đồng

  • Connect
  • Contribute
  • Developer

Theo dõi

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Riêng tư
  • Cookie
  • Pháp lý

Trừ trường hợp khác đã ghi chú, nội dung trên trang này được cấp phép theo giấy phép Creative Commons Attribution Share-Alike v3.0 hoặc bất kỳ phiên bản nào sau này.