|
| 1 | +--- |
| 2 | +title: "Selenium 4.31 Released!" |
| 3 | +linkTitle: "Selenium 4.31 Released!" |
| 4 | +date: 2025-04-05 |
| 5 | +tags: [ "selenium" ] |
| 6 | +categories: [ "releases" ] |
| 7 | +author: Diego Molina [@diemol](https://www.diemol.com) |
| 8 | +images: |
| 9 | + - "/images/blog/2025/selenium_4.31.jpg" |
| 10 | +description: > |
| 11 | + Today we're happy to announce that Selenium 4.31 has been released! |
| 12 | +--- |
| 13 | + |
| 14 | +We’re excited to announce the release of **Selenium 4.31** for Javascript, Ruby, Python, .NET, Java |
| 15 | +and the Grid! 🎉 |
| 16 | +This release focuses on improvements across the board, including better BiDi protocol support, test |
| 17 | +reliability, nullability enhancements, and cleanup of legacy code across languages. |
| 18 | + |
| 19 | +Links to all assets can be found on our [downloads page][downloads]. |
| 20 | + |
| 21 | + |
| 22 | +--- |
| 23 | + |
| 24 | +## 🚀 Major Highlights |
| 25 | + |
| 26 | +- Continued work towards full BiDi support in all bindings |
| 27 | +- Cleanup of unused legacy components (like `wgxpath`) |
| 28 | +- Expanded test coverage and fixes for various environments (CI, RBE, MacOS) |
| 29 | +- Improvements in documentation and development tooling |
| 30 | + |
| 31 | +--- |
| 32 | + |
| 33 | +## 🔹 Language-Specific Changes |
| 34 | + |
| 35 | +### **Java** |
| 36 | + |
| 37 | +- [Handle `getNamedCookie` and `deleteNamedCookie` for empty strings](https://github.com/SeleniumHQ/selenium/pull/15092) |
| 38 | +- [Add nullness for AppCacheStatus, Credential, and Either](https://github.com/SeleniumHQ/selenium/pull/15119) |
| 39 | +- [Add nullness for interactions](https://github.com/SeleniumHQ/selenium/pull/15118) |
| 40 | +- [Enable Safari for CookieImplementationTest](https://github.com/SeleniumHQ/selenium/pull/15544) |
| 41 | +- [Add test to add a cookie in a user context (BiDi)](https://github.com/SeleniumHQ/selenium/pull/15312) |
| 42 | + |
| 43 | +### **Python** |
| 44 | + |
| 45 | +- [Fix docstring issues that sphinx complains about](https://github.com/SeleniumHQ/selenium/pull/15466) |
| 46 | +- [Only shutdown service if process not already terminated](https://github.com/SeleniumHQ/selenium/pull/15183) |
| 47 | +- [Remove unused mocker arg in chrome options test](https://github.com/SeleniumHQ/selenium/pull/15540) |
| 48 | +- [Fix driver class name in test fixtures](https://github.com/SeleniumHQ/selenium/pull/15550) |
| 49 | + |
| 50 | +### **JavaScript** |
| 51 | + |
| 52 | +- Fixed BiDi tests for Chrome and Firefox on CI. |
| 53 | +- Implemented BiDi `permissions` module commands. |
| 54 | + |
| 55 | +### **Ruby** |
| 56 | + |
| 57 | +- [Fix BiDi test errors](https://github.com/SeleniumHQ/selenium/pull/15482) |
| 58 | +- [Allow symbols again to be passed on `delete_cookie`](https://github.com/SeleniumHQ/selenium/pull/15519) |
| 59 | + |
| 60 | +### **.NET** |
| 61 | + |
| 62 | +- [Decouple nested BiDi types across multiple modules](https://github.com/SeleniumHQ/selenium/pulls?q=is%3Apr+author%3Anvborisenko+label%3Adotnet) |
| 63 | +- [Fix null warnings in `RelativeBy` by sealing the type](https://github.com/SeleniumHQ/selenium/pull/15379) |
| 64 | +- [Simplify conversion to `LocalValue`](https://github.com/SeleniumHQ/selenium/pull/15441) |
| 65 | +- [Unify protected and internal Execute methods](https://github.com/SeleniumHQ/selenium/pull/15233) |
| 66 | +- [Make `ContinueWithAuthCommand` closer to spec (breaking change)](https://github.com/SeleniumHQ/selenium/pull/15545) |
| 67 | +- [Avoid intermediate JsonDocument allocation to improve performance](https://github.com/SeleniumHQ/selenium/pull/15555) |
| 68 | + |
| 69 | +### **Grid** |
| 70 | + |
| 71 | +- [Expose register status via Node status response](https://github.com/SeleniumHQ/selenium/pull/15448) |
| 72 | +- [Add traces for event stop session in Node](https://github.com/SeleniumHQ/selenium/pull/15348) |
| 73 | + |
| 74 | +### **Docker Selenium** |
| 75 | + |
| 76 | +- Publish Node/Standalone images with the latest Grid core version and browser backward versions |
| 77 | +- Update container environment to |
| 78 | + JDK21 ([#2642](https://github.com/SeleniumHQ/docker-selenium/pull/2642)) |
| 79 | +- Node base with share system certificate |
| 80 | + support ([#2653](https://github.com/SeleniumHQ/docker-selenium/pull/2653)) |
| 81 | +- Node container is able to restart and retry to register when `register-period` |
| 82 | + exceeded ([#2662](https://github.com/SeleniumHQ/docker-selenium/pull/2662)) |
| 83 | +- Selenium Grid scaler in KEDA feature preview |
| 84 | + - Add trigger param to set custom capabilities for matching specific |
| 85 | + Nodes ([KEDA#6536](https://github.com/kedacore/keda/pull/6536)) |
| 86 | + - Add trigger param for Node enables managed downloads |
| 87 | + capability ([KEDA#6570](https://github.com/kedacore/keda/pull/6570)) |
| 88 | +- Helm config: Set K8s node IP to all components via env var KUBERNETES_NODE_HOST_IP in |
| 89 | + template ([#2668](https://github.com/SeleniumHQ/docker-selenium/pull/2668)) |
| 90 | +- [See all changes](https://github.com/SeleniumHQ/docker-selenium/releases) |
| 91 | + |
| 92 | +<br> |
| 93 | + |
| 94 | +We thank all our contributors for their incredible efforts in making Selenium better with every |
| 95 | +release. ❤️ |
| 96 | + |
| 97 | +For a detailed look at all changes, check out |
| 98 | +the [release notes](https://github.com/SeleniumHQ/selenium/releases/tag/4.31). |
| 99 | + |
| 100 | +<br> |
| 101 | + |
| 102 | +## Contributors |
| 103 | + |
| 104 | +**Special shout-out to everyone who helped the Selenium Team get this release out!** |
| 105 | + |
| 106 | +### [Selenium](https://github.com/SeleniumHQ/selenium) |
| 107 | + |
| 108 | +<div class="d-flex justify-content-center"> |
| 109 | + <div class="col-11 p-4 bg-transparent"> |
| 110 | + <div class="row justify-content-center"> |
| 111 | +{{< gh-user "https://api.github.com/users/Delta456" >}} |
| 112 | +{{< gh-user "https://api.github.com/users/PSandro" >}} |
| 113 | +{{< gh-user "https://api.github.com/users/mk868" >}} |
| 114 | +{{< gh-user "https://api.github.com/users/navin772" >}} |
| 115 | + </div> |
| 116 | + </div> |
| 117 | +</div> |
| 118 | + |
| 119 | +### [Selenium Docs & Website](https://github.com/SeleniumHQ/seleniumhq.github.io) |
| 120 | + |
| 121 | +<div class="row justify-content-center"> |
| 122 | + <div class="col-11 p-4 bg-transparent"> |
| 123 | + <div class="row justify-content-center"> |
| 124 | +{{< gh-user "https://api.github.com/users/alaahong" >}} |
| 125 | +{{< gh-user "https://api.github.com/users/pallavigitwork" >}} |
| 126 | + </div> |
| 127 | + </div> |
| 128 | +</div> |
| 129 | + |
| 130 | +### [Docker Selenium](https://github.com/SeleniumHQ/docker-selenium) |
| 131 | + |
| 132 | +<div class="row justify-content-center"> |
| 133 | + <div class="col-11 p-4 bg-transparent"> |
| 134 | + <div class="row justify-content-center"> |
| 135 | +{{< gh-user "https://api.github.com/users/KenHuPricer" >}} |
| 136 | +{{< gh-user "https://api.github.com/users/KyriosGN0" >}} |
| 137 | + </div> |
| 138 | + </div> |
| 139 | +</div> |
| 140 | + |
| 141 | +### [Selenium Team Members][team] |
| 142 | + |
| 143 | +**Thanks as well to all the team members who contributed to this release:** |
| 144 | + |
| 145 | +<div class="row justify-content-center"> |
| 146 | + <div class="col-11 p-4 bg-transparent"> |
| 147 | + <div class="row justify-content-center"> |
| 148 | +{{< gh-user "https://api.github.com/users/aguspe" >}} |
| 149 | +{{< gh-user "https://api.github.com/users/AutomatedTester" >}} |
| 150 | +{{< gh-user "https://api.github.com/users/bonigarcia" >}} |
| 151 | +{{< gh-user "https://api.github.com/users/cgoldberg" >}} |
| 152 | +{{< gh-user "https://api.github.com/users/diemol" >}} |
| 153 | +{{< gh-user "https://api.github.com/users/harsha509" >}} |
| 154 | +{{< gh-user "https://api.github.com/users/joerg1985" >}} |
| 155 | +{{< gh-user "https://api.github.com/users/nvborisenko" >}} |
| 156 | +{{< gh-user "https://api.github.com/users/p0deje" >}} |
| 157 | +{{< gh-user "https://api.github.com/users/pujagani" >}} |
| 158 | +{{< gh-user "https://api.github.com/users/RenderMichael" >}} |
| 159 | +{{< gh-user "https://api.github.com/users/shbenzer" >}} |
| 160 | +{{< gh-user "https://api.github.com/users/shs96c" >}} |
| 161 | +{{< gh-user "https://api.github.com/users/titusfortner" >}} |
| 162 | +{{< gh-user "https://api.github.com/users/VietND96" >}} |
| 163 | + </div> |
| 164 | + </div> |
| 165 | +</div> |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | +Stay tuned for updates by following SeleniumHQ on: |
| 170 | + |
| 171 | +- [Mastodon](https://mastodon.social/@seleniumHQ@fosstodon.org) |
| 172 | +- [BlueSky](https://bsky.app/profile/seleniumconf.bsky.social) |
| 173 | +- [LinkedIn](https://www.linkedin.com/company/selenium/) |
| 174 | +- [Selenium Community YouTube Channel](https://www.youtube.com/@SeleniumHQProject/streams) |
| 175 | +- [X (Formerly Twitter)](https://twitter.com/seleniumhq) |
| 176 | + |
| 177 | +Happy automating! |
| 178 | + |
| 179 | +[downloads]: /downloads |
| 180 | + |
| 181 | +[bindings]: /downloads#bindings |
| 182 | + |
| 183 | +[team]: /project/structure |
| 184 | + |
| 185 | +[BiDi]: https://github.com/w3c/webdriver-bidi |
0 commit comments