Description
Selene is a Python library for writing browser UI tests in readable, English-like code. It is a Pythonic port of Selenide, the Java library, and it wraps Selenium WebDriver so that tests describe what the user sees rather than low-level driver steps. Elements are lazily evaluated, and built-in smart waiting and retries handle content that loads with Ajax-style updates. Selene supports PageObjects, where elements are composed into reusable widgets for different components of a page. Its list of expected conditions, called matchers, is larger than the one in raw Selenium, which keeps assertions short, and a set of predefined commands on elements reduces the code needed for common actions. The README covers installation, a quick start, the core API, element locators, automatic driver and browser management, tutorials and tips for test automation, a migration guide between versions and the changelog. The project is public on GitHub, and the README points readers to a contribution guide.…
Highlights
- Readable browser UI tests in Python
- Lazy elements with smart waits and retries
- PageObjects and reusable widgets
- Larger set of conditions than raw Selenium
- Automatic driver and browser management
Ratings & Reviews
No ratings yet
Be the first to rate Selene.
People also visit
Selene FAQ
What is Selene?
It is a Python library for browser UI tests. It is a port of the Java library Selenide and is built on Selenium WebDriver.
Who is it for?
Developers and QA teams who want tests that are easy to read and share. The README says the tests read like common English.
Does it handle slow-loading pages?
Yes. The README describes built-in smart implicit waiting and retry mechanisms for elements that load dynamically with Ajax-like updates.
Where do I start?
The README covers installation, a quick start, the core API and tutorials, and it includes a migration guide for moving between versions.
What are the best Selene alternatives?
Popular alternatives to Selene include Helium, Thirtyfour and Screenster. See all Selene alternatives













