← חזרה לתכונות
Pro

DOM Path Finder

DOM Path Finder lets you hover any element on a page to reveal its unique CSS selector, short selector, XPath, and ready-to-paste querySelector snippet. Click to lock the element, then navigate with Parent/Child/Sibling buttons. Essential for Selenium, Puppeteer, Playwright, and Cypress users.

Writing automation tests, web scrapers, or bookmarklets means writing selectors — but figuring out a stable, unique selector for a specific element is tedious. You open DevTools, inspect, right-click, copy selector, and hope the result is actually unique and stable. DOM Path Finder makes this a single click. Activate the tool and hover any element on the page — it highlights purple as you move. Click to lock it, and the panel fills with four selector formats: a unique path-based CSS selector, a short selector (tag + classes or id), an absolute XPath, and a pre-wrapped document.querySelector('...') snippet ready to paste into a script. Once locked, you can navigate the DOM tree with Parent / First Child / Prev Sibling / Next Sibling buttons without losing focus. Data-testid attributes are detected and prioritized when present — ideal for Playwright/Cypress who use them as anchors. The tool also shows tag, id, classes, bounding size, and display/position properties for quick context.

תצוגה מקדימה חיה
example.com
DOM Path Finder ● picking
Picking active — hover any element on the page, click to lock. Press Esc to stop.
Pick Element Parent First Child ◀ Prev Next ▶
Tag<button> ID#submit-btn Classesbtn btn-primary btn-lg Size124 × 42
CSS (unique) body > main > form#login > button#submit-btn Copy CSS (short) button#submit-btn Copy XPath //*[@id="submit-btn"] Copy querySel document.querySelector('#submit-btn') Copy
תכונות מפתח

Hover-to-Highlight Picker

Move your mouse over the page to see elements highlight purple. Click to lock — no need for DevTools Inspector.

Four Selector Formats

Unique CSS path, short selector, absolute XPath, and wrapped querySelector snippet. Pick whichever fits your tooling.

DOM Tree Navigation

Once locked, use Parent / First Child / Prev / Next buttons to move through the DOM without re-picking.

One-Click Copy

Each selector has its own Copy button. Grab the format your script needs and paste directly into your test or scraper.

Element Context at a Glance

Displays tag, id, classes, size, display, and position — quick overview without re-inspecting.

Smart Selectors

If the element has an id, the unique CSS uses #id. If a data-testid is present, it's surfaced for Playwright/Cypress use.

מקרי שימוש נפוצים

Writing Selenium/Playwright Tests

Pick the element under test, copy its selector, and paste into your test code — no more guessing at unique paths.

Building Web Scrapers

Find the structural selector for list items on a scraping target. Use short or path-based selector depending on stability needs.

Debugging CSS

Lock an element and copy its path to investigate why CSS isn't applying — the unique selector shows the element's full tree location.

Browser Automation in Console

Copy the pre-wrapped document.querySelector(...) snippet straight into DevTools Console for quick interactive debugging.

A11y Element Identification

When auditing accessibility, use XPath to feed elements into axe-core or other a11y tools that expect XPath references.

איך להשתמש
1

Open DOM Path Finder

Click the Path Finder icon in the DevSuite Pro dock. The tool activates in picking mode immediately.

2

Hover an Element

Move your mouse over the page — each element highlights purple as you pass over it. Scroll as needed to find your target.

3

Click to Lock

Click the element you want. The picker stops and the panel fills with selector formats, context, and copy buttons.

4

Navigate Or Re-Pick

Use Parent/Child/Sibling buttons to refine the selection, or click Pick Element to start hover-picking again.

5

Copy the Selector

Click Copy next to the format you need (CSS, XPath, or querySelector). Paste directly into your test, scraper, or console.

מוכנים לנסות? DOM Path Finder?

התקן את DevSuite Pro בחינם ופתח 39+ כלי פיתוח לדפדפן שלך.

הוסף ל-Chrome הוסף ל-Edge הוסף ל-FireFox