|
| 1 | +--- |
| 2 | +title: "Selenium 4.39 Released!" |
| 3 | +linkTitle: "Selenium 4.39 Released!" |
| 4 | +date: 2025-12-06 |
| 5 | +tags: [ "selenium" ] |
| 6 | +categories: [ "releases" ] |
| 7 | +author: Diego Molina [@diemol](https://www.diemol.com) |
| 8 | +images: |
| 9 | + - "/images/blog/2025/selenium_4.39.jpg" |
| 10 | +description: > |
| 11 | + Today we're happy to announce that Selenium 4.39 has been released! |
| 12 | +--- |
| 13 | + |
| 14 | +We’re excited to announce the release of **Selenium 4.39** for JavaScript, Ruby, Python, .NET, Java |
| 15 | +and the Grid! 🎉 |
| 16 | + |
| 17 | +Links to all assets can be found on our [downloads page][downloads]. |
| 18 | + |
| 19 | + |
| 20 | +--- |
| 21 | + |
| 22 | +# Selenium 4.39 Released |
| 23 | + |
| 24 | +Selenium 4.39 is a feature-rich release with numerous improvements across the board. It brings |
| 25 | +enhancements to BiDi across Java, Python, and .NET, more emulation commands, major updates to |
| 26 | +Dynamic Grid behavior, and continuous work on JSpecify annotations. It also includes docstring |
| 27 | +cleanups, test infra upgrades, and build system optimizations. |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +## Highlights |
| 32 | + |
| 33 | +- **Chrome DevTools support** is now: v143, v142, and v141. |
| 34 | +- **BiDi Enhancements Across Languages**: New emulation and download behavior commands for Java, Python, and .NET. |
| 35 | +- **Dynamic Grid Improvements**: Better container handling, new labels, and minimum Docker API version enforcement. |
| 36 | +- **Docstring and Type Hinting**: Continued work on Python docstrings using Google style and improving type hints. |
| 37 | +- **JSpecify Coverage in Java**: Many new annotations for type-safety and better tooling support. |
| 38 | +- **Build & CI Enhancements**: Optimized workflows, Bazel module updates, and CI improvements across languages. |
| 39 | + |
| 40 | +--- |
| 41 | + |
| 42 | +## Language-specific Changes |
| 43 | + |
| 44 | +### Java |
| 45 | + |
| 46 | +- **BiDi**: |
| 47 | + - Support for: |
| 48 | + - `emulation.setTimezoneOverride` |
| 49 | + - `emulation.setScriptingEnabled` |
| 50 | + - `emulation.setUserAgentOverride` |
| 51 | + - `browser.setDownloadBehavior` |
| 52 | + - `browsingContext.setViewport(null, null)` |
| 53 | + - Refactored request interception tests with CORS handling. |
| 54 | +- **JSpecify annotations**: |
| 55 | + - `CommandCodec`, `CommandInfo`, `CommandPayload`, `Color`, `ChromiumDriver`, and more. |
| 56 | +- **Other**: |
| 57 | + - Prevent logging debug logs at `INFO` level. |
| 58 | + - Fixes for `PrintOptions.setPageRanges`, ClassCastException, and Chrome tests on Windows. |
| 59 | + - Improvements to exception handling and collection simplification. |
| 60 | + |
| 61 | +--- |
| 62 | + |
| 63 | +### Python |
| 64 | + |
| 65 | +- **BiDi**: |
| 66 | + - Added: |
| 67 | + - `set_locale_override` |
| 68 | + - `set_scripting_enabled` |
| 69 | + - `set_screen_orientation_override` |
| 70 | + - `set_download_behavior` |
| 71 | + - `set_user_agent_override` |
| 72 | + - Viewport reset command |
| 73 | + - Enabled download event tests for Firefox. |
| 74 | +- **Documentation & Type Hints**: |
| 75 | + - Full docstring conversion to Google format. |
| 76 | + - Removed `noqa` markers, improved type annotations with union syntax. |
| 77 | +- **Dev/Tooling**: |
| 78 | + - Bumped `pytest`, `ruff`, `mypy`, and `urllib3`. |
| 79 | + - WebSocket improvements (daemon threads). |
| 80 | + - Test reuse and performance improvements. |
| 81 | + |
| 82 | +--- |
| 83 | + |
| 84 | +### .NET |
| 85 | + |
| 86 | +- **BiDi**: |
| 87 | + - Improved event subscription and emulation module support. |
| 88 | + - Better JSON (de)serialization contexts per module. |
| 89 | + - Viewport reset, record equality, hydration, and type unification improvements. |
| 90 | + - Added Permissions module. |
| 91 | +- **General**: |
| 92 | + - Migrated solution to `.slnx`. |
| 93 | + - Removed obsolete dependencies (`Newtonsoft.Json`, `FtpProxy`). |
| 94 | + - Syntax highlighting improvements for JS strings. |
| 95 | + - Updated build tools (`paket`, `rules_dotnet`). |
| 96 | + |
| 97 | +--- |
| 98 | + |
| 99 | +### Ruby |
| 100 | + |
| 101 | +- Fixed flaky `devtools_spec.rb`. |
| 102 | +- Minor BiDi updates. |
| 103 | + |
| 104 | +--- |
| 105 | + |
| 106 | +### Rust (Selenium Manager) |
| 107 | + |
| 108 | +- Bazel migration of `rules_rust`. |
| 109 | + |
| 110 | +--- |
| 111 | + |
| 112 | +## Grid |
| 113 | + |
| 114 | +- Minimum Docker API 1.44 support. |
| 115 | +- Improved: |
| 116 | + - Session ID handling |
| 117 | + - Container labels |
| 118 | + - Compose stack grouping |
| 119 | + - Docker client logic |
| 120 | +- Tracking `SessionRemovalInfo` and improved session map cleanup. |
| 121 | + |
| 122 | +--- |
| 123 | + |
| 124 | +## Tooling & CI |
| 125 | + |
| 126 | +- Cancel redundant CI runs. |
| 127 | +- Mirror file workflow fixes and pagination. |
| 128 | +- Bazel build improvements. |
| 129 | + |
| 130 | +--- |
| 131 | + |
| 132 | +### 🐳 Docker Selenium |
| 133 | + |
| 134 | +- [ci] Use test public site when test run via relay session to cloud |
| 135 | +- K8s: Remove triggerMetadata with empty value to prevent Unmatched input property from KEDA checks (#3005) |
| 136 | +- K8s: Expose config session request timeout in Helm chart values (#3006) |
| 137 | +- chore(deps): update helm release kube-prometheus-stack to v79 (#3007) |
| 138 | +- [See all changes](https://github.com/SeleniumHQ/docker-selenium/releases) |
| 139 | + |
| 140 | +<br> |
| 141 | + |
| 142 | +We thank all our contributors for their incredible efforts in making Selenium better with every |
| 143 | +release. ❤️ |
| 144 | + |
| 145 | +For a detailed look at all changes, check out |
| 146 | +the [release notes](https://github.com/SeleniumHQ/selenium/releases/tag/selenium-4.39.0). |
| 147 | + |
| 148 | +<br> |
| 149 | + |
| 150 | +## Contributors |
| 151 | + |
| 152 | +**Special shout-out to everyone who helped the Selenium Team get this release out!** |
| 153 | + |
| 154 | +### [Selenium](https://github.com/SeleniumHQ/selenium) |
| 155 | + |
| 156 | +<div class="d-flex justify-content-center"> |
| 157 | + <div class="col-11 p-4 bg-transparent"> |
| 158 | + <div class="row justify-content-center"> |
| 159 | +{{< gh-user "https://api.github.com/users/giulong" >}} |
| 160 | +{{< gh-user "https://api.github.com/users/iampopovich" >}} |
| 161 | +{{< gh-user "https://api.github.com/users/manuelsblanco" >}} |
| 162 | +{{< gh-user "https://api.github.com/users/mk868" >}} |
| 163 | +{{< gh-user "https://api.github.com/users/spencerarq" >}} |
| 164 | + </div> |
| 165 | + </div> |
| 166 | +</div> |
| 167 | + |
| 168 | +### [Selenium Docs & Website](https://github.com/SeleniumHQ/seleniumhq.github.io) |
| 169 | + |
| 170 | +<div class="row justify-content-center"> |
| 171 | + <div class="col-11 p-4 bg-transparent"> |
| 172 | + <div class="row justify-content-center"> |
| 173 | +{{< gh-user "https://api.github.com/users/DNotNice" >}} |
| 174 | +{{< gh-user "https://api.github.com/users/JacekSzwed" >}} |
| 175 | +{{< gh-user "https://api.github.com/users/alaahong" >}} |
| 176 | +{{< gh-user "https://api.github.com/users/janetmoreno" >}} |
| 177 | +{{< gh-user "https://api.github.com/users/kathyrollo" >}} |
| 178 | +{{< gh-user "https://api.github.com/users/rpallavisharma" >}} |
| 179 | +{{< gh-user "https://api.github.com/users/rushixdd" >}} |
| 180 | + </div> |
| 181 | + </div> |
| 182 | +</div> |
| 183 | + |
| 184 | +### [Docker Selenium](https://github.com/SeleniumHQ/docker-selenium) |
| 185 | + |
| 186 | +<div class="row justify-content-center"> |
| 187 | + <div class="col-11 p-4 bg-transparent"> |
| 188 | + <div class="row justify-content-center"> |
| 189 | +{{< gh-user "https://api.github.com/users/visit1985" >}} |
| 190 | + </div> |
| 191 | + </div> |
| 192 | +</div> |
| 193 | + |
| 194 | +### [Selenium Team Members][team] |
| 195 | + |
| 196 | +**Thanks as well to all the team members who contributed to this release:** |
| 197 | + |
| 198 | +<div class="row justify-content-center"> |
| 199 | + <div class="col-11 p-4 bg-transparent"> |
| 200 | + <div class="row justify-content-center"> |
| 201 | +{{< gh-user "https://api.github.com/users/aguspe" >}} |
| 202 | +{{< gh-user "https://api.github.com/users/asolntsev" >}} |
| 203 | +{{< gh-user "https://api.github.com/users/AutomatedTester" >}} |
| 204 | +{{< gh-user "https://api.github.com/users/bonigarcia" >}} |
| 205 | +{{< gh-user "https://api.github.com/users/cgoldberg" >}} |
| 206 | +{{< gh-user "https://api.github.com/users/diemol" >}} |
| 207 | +{{< gh-user "https://api.github.com/users/harsha509" >}} |
| 208 | +{{< gh-user "https://api.github.com/users/joerg1985" >}} |
| 209 | +{{< gh-user "https://api.github.com/users/nvborisenko" >}} |
| 210 | +{{< gh-user "https://api.github.com/users/p0deje" >}} |
| 211 | +{{< gh-user "https://api.github.com/users/pujagani" >}} |
| 212 | +{{< gh-user "https://api.github.com/users/RenderMichael" >}} |
| 213 | +{{< gh-user "https://api.github.com/users/shbenzer" >}} |
| 214 | +{{< gh-user "https://api.github.com/users/shs96c" >}} |
| 215 | +{{< gh-user "https://api.github.com/users/titusfortner" >}} |
| 216 | +{{< gh-user "https://api.github.com/users/VietND96" >}} |
| 217 | + </div> |
| 218 | + </div> |
| 219 | +</div> |
| 220 | + |
| 221 | + |
| 222 | + |
| 223 | +Stay tuned for updates by following SeleniumHQ on: |
| 224 | + |
| 225 | +- [Mastodon ](https://mastodon.social/@[email protected]) |
| 226 | +- [BlueSky](https://bsky.app/profile/seleniumconf.bsky.social) |
| 227 | +- [LinkedIn](https://www.linkedin.com/company/selenium/) |
| 228 | +- [Selenium Community YouTube Channel](https://www.youtube.com/@SeleniumHQProject/streams) |
| 229 | +- [X (Formerly Twitter)](https://twitter.com/seleniumhq) |
| 230 | + |
| 231 | +Happy automating! |
| 232 | + |
| 233 | +[downloads]: /downloads |
| 234 | + |
| 235 | +[bindings]: /downloads#bindings |
| 236 | + |
| 237 | +[team]: /project/structure |
| 238 | + |
| 239 | +[BiDi]: https://github.com/w3c/webdriver-bidi |
0 commit comments