Smart Locator Inspector Guide — PilotForge Inspector for Chrome
Smart Locator Inspector is a local-first tool inside PilotForge Inspector (Automation Testing Studio). Pick any DOM element and generate unique Playwright, CSS, XPath, and Selenium locators locally. It runs directly inside Chrome (Popup, Side Panel, DevTools) without sending your page DOM, traffic, or test artifacts to external servers.
- Author:
- SoftwareTestPilot
- Reviewed by:
- Priyanka G.
- Verified on:
- v0.5.1
- Published:
- Updated:
Practical benefits
- Runs directly inside Chrome (Popup, Side Panel, DevTools) with zero external proxy or cloud setup.
- Keeps all inspection data, rules, and outputs strictly local in your browser.
- Designed for repeatable QA workflows inside Automation Testing Studio.
Prerequisites & installation
- Google Chrome 116+ (or Chromium browser) with PilotForge Inspector v0.5.1 installed from the Chrome Web Store.
- An open standard http:// or https:// web page (browser internal pages like chrome:// cannot be inspected).
How to launch inside PilotForge
- Click the pinned PilotForge Inspector icon in your Chrome toolbar.
- Open Automation Testing Studio in the Popup and select Smart Locator Inspector.
Step-by-step usage instructions
- Open any normal website tab and click Inspect element from the PilotForge popup or side panel.
- Hover over the target element to preview its bounding box, then click to lock the selection.
- Compare Playwright role/label/test-id, CSS, XPath, and Selenium candidates along with live match counts.
- Copy the most stable locator directly into your automation suite.
Practical software testing example
Practical QA workflow with Smart Locator Inspector
Use Smart Locator Inspector on a staging or local web application to validate behavior and capture actionable QA output.
- Open any normal website tab and click Inspect element from the PilotForge popup or side panel.
- Hover over the target element to preview its bounding box, then click to lock the selection.
- Compare Playwright role/label/test-id, CSS, XPath, and Selenium candidates along with live match counts.
- Copy the most stable locator directly into your automation suite.
Expected outcome: Smart Locator Inspector produces verifiable local results in Popup, Side Panel, DevTools that you can inspect immediately or export into your test suite or bug tracker.
await page.getByRole("button", { name: "Place order" }).click();
// Fallback CSS when no accessible name exists:
await page.locator('[data-testid="place-order-btn"]').click();
Settings & controls
- Surface Switcher
- Available across Popup, Side Panel, DevTools so you can work docked beside the page or in a dedicated view.
- Active Tab Target
- Targets the currently authorized browser tab and shows a clear status indicator when attached.
- Local Reset / Clear
- Clears local session results in chrome.storage.local without affecting your application.
Results & output
- Live structured results inside Smart Locator Inspector updated locally as you interact with the page.
- Explicit status, match counts, or diagnostic details designed for fast QA triage.
Export options
- Copy structured output or generated snippets directly to the clipboard.
- Export local JSON, Markdown, or framework-ready test artifacts where supported by the tool.
FREE vs PRO feature differences
FREE (v0.5.1)
- Smart Locator Inspector is included FREE in PilotForge Inspector v0.5.1 with full local-first execution.
- No account, credit card, or remote API key required.
PRO
- No paid upgrade is required to run this tool in v0.5.1.
- Future PRO studio capabilities will be clearly labeled in the extension when released.
Common errors & troubleshooting
Element inside a closed shadow root or cross-origin iframe is not selectable
Chrome restricts extensions from piercing closed shadow roots or third-party iframes without explicit frame access. Inspect the host element and use Playwright frameLocator() in your test.
Browser permissions & privacy
Permissions used
- activeTab and storage (baseline local-only permissions).
- On-demand scripting injection on the active tab when you click start.
Privacy guarantees
- All DOM reads, metrics, and exports stay on your machine inside Chrome.
- No page content, cookies, or test outputs are transmitted to third-party servers.
Technical limitations
- Cannot run on Chrome internal URLs (chrome://, edge://, chrome-extension://) or the Chrome Web Store.
- Cross-origin iframes and closed shadow roots are restricted by standard Chrome extension security boundaries.
Best practices
- Reload your target tab once after installing or updating the extension so scripts attach cleanly.
- Export or copy important findings before closing an incognito or temporary test profile.
Frequently asked questions
Frequently asked questions
1.Is Smart Locator Inspector free to use in PilotForge Inspector?
2.Does Smart Locator Inspector send my page data to any server?
Was this guide helpful?
Your feedback helps us improve these documentation pages.
Try this tool locally in Chrome
Install PilotForge Inspector free from the Chrome Web Store — no account required.
Requires desktop Chrome. Copy the link to install on your computer.
