r/softwaretesting • u/Interesting_Mouse437 • May 28 '26
We got tired of maintaining broken Playwright selectors so we built something that writes them itself
Every time our frontend changed, half our test suite broke. Not because the features broke — because a class name changed or a button moved. We were spending more time fixing selectors than writing new tests.
So we built Confidence Gate. Instead of writing selectors, you write:
Action: click the Submit button
Expected: the confirmation page is displayed
The AI resolves the element at runtime, executes the step in a real browser via Playwright, takes a screenshot, and verifies the outcome against what you said should happen. No selector to break. No selector to fix.
At the end of a run you get a confidence score (0–100) and a gate decision — ship / caution / block — based on pass rates, flakiness history, and optionally a comparison against your PRD.
We just open sourced it: github.com/OaktreeInnovations/confidence-gate
Runs entirely on Docker. Supports OpenAI, Anthropic, or Ollama if you want to keep it local. MIT license.
Happy to answer questions about how the AI execution engine works - it's the most interesting part.
View all comments
Show parent comment
1
u/Interesting_Mouse437 Jun 01 '26
Fair points. The selector argument is really just the entry point for non-technical users who can't write Playwright tests at all.
The core is the confidence score - we run your PRD against your test suite and tell you whether what was built actually matches what was specified. That's the release gate. Not healing, not selector management.