45+ selector patterns. Stability scoring. POM code snippets.
Built for Selenium & Playwright engineers who need reliable locators — not guesswork.
Generates XPath and CSS selectors across 10+ categories — ID, class, attribute, text, parent-child, sibling, and more. Always gives you options.
Every selector gets a score from 0–100. Instantly see which locators are Stable, Moderate, or Fragile — so your tests don't break on the next deploy.
One click generates ready-to-paste Page Object Model code for Selenium and Playwright in Java, Python, JavaScript, and C#.
XPath Forte doesn't just give you one XPath. It generates selectors across every useful strategy.
Click the extension icon to activate inspection mode. Hover over any element on the page to see its tag, ID, class, and attributes highlighted in real time. Click to select — and XPath Forte instantly generates every viable selector.
//button[@data-testid='submit-btn']
//button[@id='submitForm']
//form[@class='login']//button[1]
/html/body/div[3]/form/button
Every element gets analyzed through multiple selector strategies so you always have the best option available.
@id, @class, contains(@class)name, role, aria-label, data-testidtext(), contains(), starts-with()ancestor::, parent::, multilevelfollowing-sibling::, by tag+textclass+attr, ID+attr, name+attrXPath Forte generates CSS selectors alongside XPath, covering all the patterns your tests might need.
data-testid, data-test, data-cy, data-qa#submitForm[data-testid="submit-btn"]button.btn-primaryform.login > buttonMany frameworks generate dynamic IDs that change on every build. XPath Forte recognizes and filters them automatically.
j_idt88
Angular ng-content
Vue data-v-
Styled Components
Material-UI
Ember
Also detects UUIDs, hex hashes, and high-digit-ratio strings — so you never copy a selector that will be stale tomorrow.
j_idt88:j_idt91:input
JSF dynamic
sc-bdVTJa dKpMkN
Styled Comp hash
data-v-4a3f2b1c
Vue scoped
submit-button
Stable ID
Three steps. Zero configuration.
Activates inspection mode on the current page. Elements highlight as you hover over them.
XPath Forte generates 45+ XPath and CSS selectors with stability scores for the selected element.
Copy any selector with one click, or generate POM code snippets for your framework and language.
Know which locators will break — before they do.
Reliable across deployments. Prefer these selectors for CI/CD pipelines.
@data-testid
@id (stable)
@aria-label
Usable but may need maintenance. Review before relying on in critical flows.
class-based
text contains
parent-child
Likely to break. Avoid in automated tests. XPath Forte warns you before you copy.
absolute paths
index-based
deep nesting
Select an element and get instant POM snippets for your framework and language.
// Selenium + Java @FindBy(xpath = "//button[@data-testid='submit-btn']") private WebElement submitButton; @FindBy(css = "[data-testid='submit-btn']") private WebElement submitButtonCss;
Free to use. Install XPath Forte and stop fighting flaky selectors.