Selenium 4.27 Released!

Today we’re happy to announce that Selenium 4.27 has been released!

We’re very happy to announce the release of Selenium 4.27 for Javascript, Ruby, Python, .NET, Java and the Grid! Links to everything can be found on our downloads page.

Here is the latest iteration of the world’s most popular browser automation tool! This release brings significant updates across all supported languages, enhancing functionality, performance, and compatibility. From new features like FedCM command support in Python and improved BiDi handling in .NET to critical deprecations like CDP methods for Firefox.

General Highlights

  • Chrome DevTools support is now: v131, v128, and v127 (Firefox still uses v85 for all versions)
  • Selenium has over 5.1M active users in the last 30 days. 300K more than 1 month ago!
  • Deprecation of CDP methods for Firefox across several bindings to align with evolving automation standards.
  • Enhanced Selenium Grid with improved session handling, distributed retry logic, and faster server shutdown processes.
  • Updates for .NET and Java to modernize exception handling, improve BiDi support, and address compatibility warnings.
  • Deprecation of getAttribute in multiple languages as part of Selenium’s evolution.

Python

  • Deprecated CDP methods for Firefox. (e2e9ac5f7e)
  • Replaced imghdr with filetype for better compatibility. (b1828bf108)
  • Moved project metadata from setup.py to pyproject.toml. (673d2c78be)
  • Added FedCM command support. (d3d8070d50)
  • Introduced backward compatibility for AppiumConnection. (3a3c46b3c1)
  • Added user agent and extra headers via ClientConfig. (e2023893c7)
  • Addressed DetachedShadowRoot exception handling. (7aabb8d1b4)

Ruby

  • Deprecated CDP methods for Firefox. (e9c09a200e)
  • Resolved deprecation warnings for the uri gem. (751bacb6bc)
  • Added BiDi navigation commands and support for network interception. (573c8fe961)

Java

  • Enhanced error messages for NoSuchElementException. (4a0d05e50e)
  • Deprecated WebElement.getAttribute(). (cd7303c437)
  • Introduced methods for selecting options containing specific text. (b4b8aaba2b)
  • Added Firefox CDP deprecation warnings. (19fc217985)

.NET

  • Added CDP deprecation warnings for Firefox. (8f725b3a80)
  • Improved BiDi and async support across modules. (9054e892cc)
  • Enabled nullability annotations for better type safety. (d9149acc09)
  • Introduced compatibility improvements for actions with clashing device names. (a9ec9ca682)
  • Deprecated GetAttribute method for WebElements. (ac523a5d0a)

JavaScript

  • Enabled BiDi tests for locating nodes with Chrome and Edge. (339421538b)
  • Enhanced support for authentication handlers in BiDi commands. (25551adfe8)
  • Updated dependencies to resolve security alerts. (3906742748)

Rust

  • Selenium Manager now honors full browser versions. (fe5b1985e5)
  • Updated logic to prioritize stable versions for Firefox management. (0d2dda17b4)

Selenium Grid

  • Improved retry logic for session creation in distributed grids. (e4ab299ea4)

  • Improved session handling in Selenium Grid and reduced test flakiness. (b0464e1adf)

  • Enhanced server shutdown for faster termination. (62aa0e551e)

  • Implemented graceful handling of stale sessions and client timeouts. (b0464e1adf)

  • Improved detection of unsupported HTTP methods during request handling. (f56b3d07d9)


Docker Selenium

Contributors

Special shout-out to everyone who helped the Selenium Team get this release out!

Selenium

Swastik Baranwal

Swastik Baranwal

Michael Render

Michael Render

Andrew Nesbitt

Andrew Nesbitt

Ed Manlove

Ed Manlove

Jose D. Gomez R.

Jose D. Gomez R.

Navin Chandra

Navin Chandra

Natalia Pozhidaeva

Natalia Pozhidaeva

Sandeep Suryaprasad

Sandeep Suryaprasad

Simon Benzer

Simon Benzer

Selenium Docs & Website

Michael Render

Michael Render

Yevgeniy Shunevych

Yevgeniy Shunevych

ian zhang

ian zhang

Jason Ren

Jason Ren

Navin Chandra

Navin Chandra

Simon Benzer

Simon Benzer

Andrew Zipperer

Andrew Zipperer

Docker Selenium

Viet Nguyen Duc

Viet Nguyen Duc

Selenium Team Members

Thanks as well to all the team members who contributed to this release:

Agustin Pequeno

Agustin Pequeno

David Burns

David Burns

Boni García

Boni García

Diego Molina

Diego Molina

Sri Harsha

Sri Harsha

Nikolay Borisenko

Nikolay Borisenko

Alex Rodionov

Alex Rodionov

Puja Jagani

Puja Jagani

Simon Stewart

Simon Stewart

Titus Fortner

Titus Fortner

Viet Nguyen Duc

Viet Nguyen Duc

Stay tuned for updates by following SeleniumHQ on X (Formerly Twitter) or LinkedIn!

Happy automating!

Last modified November 29, 2024: Release 4.27 (#2086) (2c917d8c23)