Selenia
github.com
Find Selenium elements with plain English using a 24 MB local model, no LLM or API key.
- Pricing
- Open source
- Published
- Nov 27, 2026
Next steps
- Reticle
Both tools are listed under AI Testing and AI Developer Tools.
- Attest
Both tools are listed under AI Testing, AI Developer Tools, and pytest.
- SimpleEnglish
Both tools are listed under AI Developer Tools and Open Source.
- CodeGraph
- Diagram Design
- Agent Skills (Addy Osmani)
What it does
Selenia is a Python library that lets Selenium tests find elements from plain-English descriptions such as find('the login button') instead of brittle XPath or CSS selectors. A 24 MB fine-tuned ranking model scores the real elements on the page and returns the best one; it never writes a selector, so it cannot invent one, and it raises when nothing fits or two elements tie. It runs fully locally with no LLM or API key, works offline and in locked-down CI, and reports 89% top-1 / 96% top-3 accuracy on unseen sites at about 20-35 ms per find on an M1 CPU. On PyPI, MIT licensed.
Use cases
- Replace brittle XPath and CSS selectors in Selenium tests with plain-English descriptions
- Run UI tests offline or in locked-down CI without sending pages to an LLM API
- Find elements in about 20-35 ms on a laptop CPU with no per-call cost
Frequently asked questions
- What is Selenia?
- Selenia is a Python library that finds Selenium elements from plain-English descriptions such as find('the login button'), using a 24 MB fine-tuned ranking model that runs locally.
- Does it use an LLM or API key?
- No. The README says it needs no LLM and no API key; the small model scores the real elements on the page and never writes a selector, so it cannot invent one.
- How accurate and fast is it?
- The README reports 89% top-1 and 96% top-3 accuracy on websites the model never saw, and about 20-35 ms per find on an Apple M1 CPU after a 0.4 s model load. It raises an error instead of guessing when nothing fits.
- How do I install it?
- It is published on PyPI as selenia and is MIT licensed.