Spectara



Overview
Click any element to get a locator that matches exactly one node, plus ready-to-paste Selenium, Playwright or Cypress code.
Spectara finds the locator for any element on a web page and writes the test code for it. Press Ctrl+Shift+L (Cmd+Shift+L on Mac), hover the element you need, and click. You get every usable locator for it, ranked by how likely it is to survive the next release, and a line of code you can paste straight into your test. I built it because I was tired of right-click, Copy XPath, and then fixing /html/body/div[3]/div[2]/span a week later when the layout changed. HOW IT PICKS A LOCATOR Spectara tries id, name, data-testid, CSS and XPath for the element you clicked, then checks each one against the live page. A locator only becomes the top pick if it matches exactly one element. Auto-generated ids (React, Angular, Ember, build hashes) are pushed down the list, and the absolute XPath is always shown last and marked as brittle. Each option shows how many elements it matches, so you can see why it was ranked where it is and copy a different one if your team prefers it. FREE - Single-element capture on any website - Five locator strategies with a ranked best pick and a match count for each - Selenium code in Java, Python or C#, with readable variable names (emailInput, signInButton) - Click an icon inside a button and it captures the button. Hold Alt to capture the exact node instead - Press P to pause, open a dropdown or hover menu normally, then press P again and click the item inside it - Esc stops inspecting at any time - Light and dark themes PRO - Multi-capture: keep clicking, and Spectara builds a complete Page Object class (Java, Python or C#) with fields and action methods - Export the Page Object as a .java, .py or .cs file - Playwright code (TypeScript or Python) and Cypress code for every capture - Elements inside iframes: the generated code switches into the right frame (switchTo().frame in Selenium, frameLocator in Playwright) - Elements inside open Shadow DOM: the code walks the shadow roots for you (getShadowRoot in Selenium, .shadow() in Cypress) - List detection: click one row or card and get a locator for all of them, plus a count check - Live validation of each locator against the current page Pro is $4.99 a month with a 7-day free trial, or $39 a year. Cancel any time; there is a 14-day refund. Payment and license keys are handled by Polar. After checkout your key arrives by email; paste it into the Pro tab. PRIVACY Your captures stay in your browser. There is no analytics and no tracking. The free version makes no network requests at all. With Pro, the extension sends your license key, and nothing else, once a day to check that it is still valid. Why Chrome says it can "read and change data on all websites": the inspector has to run inside the page you are inspecting, and that can be any site. It only runs after you start inspecting. The other permissions are activeTab, scripting (to start the inspector) and storage (to keep your captures locally). Chrome does not let any extension run on its own pages (chrome://), the Chrome Web Store or the built-in PDF viewer, so inspect is unavailable there. Website and FAQ: https://spectara.pages.dev Support: abdelrahman.tarek.dev@gmail.com Spectara is an independent project and is not affiliated with Selenium, Playwright or Cypress. Their names are used only to describe which APIs the generated code targets.
0 out of 5No ratings
Details
- Version1.5.0
- UpdatedOctober 30, 2026
- FeaturesOffers in-app purchases
- Offered byabdelrahman.tarek.dev
- Size153KiB
- LanguagesEnglish
- Developer
Email
abdelrahman.tarek.dev@gmail.com - Non-traderThis developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.
Privacy
This developer declares that your data is
- Not being sold to third parties, outside of the approved use cases
- Not being used or transferred for purposes that are unrelated to the item's core functionality
- Not being used or transferred to determine creditworthiness or for lending purposes
Support
For help with questions, suggestions, or problems, visit the developer's support site