Repository navigation
Selene 2.0.0rc10
This release candidate continues stabilizing the 2.0.0rc9 line on the way to the final 2.0.0 release.
The focus of 2.0.0rc10 is compatibility with recent Selenium versions, Python 3.10+ baseline cleanup, long-standing condition semantics fixes, better timeout artifact handling, and release/CI hardening.
Highlights
-
Selenium 4.40+ compatibility fixed
Selene no longer relies on the removed/changed internalAnyDeviceimport from Selenium action chains. This fixes compatibility with recent Selenium versions, including Selenium4.43. -
Python baseline updated to 3.10+
Python 3.8 and 3.9 support has been removed. Selene now targets Python3.10through3.14. -
Frame/iframe context ergonomics improved
Added experimentalquery._frame_context(...)support for explicit frame/iframe context management, including nestedwithusage and lazy lookup helpers inside frame contexts. -
Attribute assertions for
hrefandsrcfixed
have.attribute('href').value(...)andhave.attribute('src').value(...)now compare against the actual DOM attribute value instead of Selenium/WebDriver-normalized absolute URLs. -
Composed collection conditions fixed
collection.should(...)now handles composed conditions such ashave.css_class(...).and_(...)andhave.text(...).or_(...)correctly. -
Negated descriptor chains fixed
Chained checks such ashave.no.attribute(...).value_containing(...)now work correctly, including similar chains forattribute,js_property, andcss_property. -
JavaScript drag-and-drop retry behavior fixed
command.js.drag_and_drop_to(...)now properly honors_assert_location_changed=True, allowing Selene’s wait/retry mechanism to work as expected. -
Timeout artifact handling improved
Selene now avoids unnecessary screenshot/page-source artifacts for handledFalseoutcomes inwait_until(...), and timeout error links now use validfile://URI formatting across operating systems. -
Typing and Python 3.13+ compatibility polished
query.attribute(...)typing now reflects that missing attributes may returnNone, and timeout reason rendering is normalized for Python 3.13+. -
Release and CI pipeline hardened
The release workflow now validates version consistency, runs package metadata checks, smoke-installs the built wheel in a clean virtual environment, and no longer mutates source files during publishing.
Notes for maintainers and contributors
This release also includes significant test coverage and infrastructure work: broader Python version coverage, split Codecov reporting, improved fork PR coverage behavior, non-blocking clipboard/speed/remote jobs, and updated release documentation.
For the full list of changes, fixes, tests, and CI/release updates, see the changelog: