Skip to content

Bump Selenium to 4.54.0 and CDP to v158 in examples - #3013

Merged
diemol merged 1 commit into
trunkfrom
bump-selenium-4.54
Nov 24, 2026
Merged

diemol merged 1 commit into
trunkfrom
bump-selenium-4.54

Conversation

@diemol

@diemol diemol commented Nov 24, 2026

Copy link
Copy Markdown
Member

Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, and help reviewers by making them as simple and short as possible.

Description

  • Bump Selenium to 4.54.0 in Java (Maven and Gradle), Kotlin, .NET, JavaScript, and Ruby examples. Python is already on 4.54.0.
  • Bump selenium-devtools gem to 0.158.0.
  • Move Java and .NET CDP examples from v157 to v158.

Motivation and Context

Keep the examples on the latest Selenium release.

Types of changes

  • Change to the site (I have double-checked the Netlify deployment, and my changes look good)
  • Code example added (and I also added the example to all translated languages)
  • Improved translation
  • Added new translation (and I also added a notice to each document missing translation)

Checklist

  • I have read the contributing document.
  • I have used hugo to render the site/docs locally and I am sure it works.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 24, 2026

Copy link
Copy Markdown

✅ Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit cfbffee
🔍 Latest deploy log https://app.netlify.com/projects/selenium-dev/deploys/6b054ca458e16710777af865
😎 Deploy Preview https://deploy-preview-3013--selenium-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@qodo-code-review

qodo-code-review Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

PR Summary by Qodo

Bump Selenium examples to 4.54.0 and CDP examples to v158

⚙️ Configuration changes 🕐 10-20 Minutes

Grey Divider

AI Description

• Align Java, Kotlin, .NET, JavaScript, and Ruby examples with Selenium 4.54.0.
• Move Java and .NET CDP examples to v158 and update Ruby devtools accordingly.
• Refresh JavaScript and Ruby lockfiles to match their dependency declarations.
Merge Risk 🟡 Medium

Blast radius 🟡 Medium 💥 5 capabilities

  • 5 affected capabilities within one bounded functional scope: selenium-documentation-example-suites.
  • The Java build files and Java CDP tests jointly implement the Java example suite's build and browser-test behavior.
  • They are one language-specific consumer of the upgraded Selenium/CDP contract, within the same bounded documentation-example integration as the other language suites.
  • The .NET project dependency references and CDP network tests jointly implement the .NET example suite.
  • This is a distinct language-specific execution capability, not a separate deployment or storage layer.
  • The Kotlin Maven project is an independent language-specific dependency consumer within the bounded example-suite integration.
  • Its changed version property can affect Kotlin example compilation and test execution without being a separate functional domain.
  • The package manifest and lockfile determine the Selenium WebDriver package used by the JavaScript examples.
  • This is a distinct language-specific consumer of the same example integration.
  • The Ruby Gemfile and lockfile jointly select Selenium WebDriver and selenium-devtools for the Ruby examples.
  • This is a separate language-specific execution capability within the same bounded documentation-example integration.
Sources

examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs[9-22]

using OpenQA.Selenium.DevTools.V158.Browser;
using OpenQA.Selenium.DevTools.V158.Network;
using OpenQA.Selenium.DevTools.V158.Performance;


namespace SeleniumDocs.BiDi.CDP
{
    [TestClass]
    public class NetworkTest : BaseTest
    {
        [TestInitialize]
        public void Startup()
        {
            StartDriver("158");

examples/java/src/test/java/dev/selenium/bidi/cdp/CdpApiTest.java[19-30]

import org.openqa.selenium.devtools.v158.browser.Browser;
import org.openqa.selenium.devtools.v158.network.Network;
import org.openqa.selenium.devtools.v158.network.model.Headers;
import org.openqa.selenium.support.ui.WebDriverWait;

public class CdpApiTest extends BaseTest {
  DevTools devTools;

  @BeforeEach
  public void createSession() {
    ChromeOptions options = getDefaultChromeOptions();
    options.setBrowserVersion("158");

examples/java/pom.xml[13-16]

        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <selenium.version>4.54.0</selenium.version>

examples/ruby/Gemfile.lock[53-55]

    selenium-devtools (0.158.0)
      selenium-webdriver (~> 4.2)
    selenium-webdriver (4.54.0)
Behavioral complexity 🟡 Medium 🧩 Compatibility cases

  • Before: the examples resolved Selenium 4.53.0, used CDP v157 namespaces in the Java and .NET tests, and selected the corresponding browser generation.
  • After: dependency manifests and lockfiles resolve Selenium 4.54.0, the CDP imports/types use v158, and the affected browser setup uses version 158.
  • The new correctness condition is that each language's resolved Selenium artifact, version-specific CDP API namespace, and explicitly selected browser generation remain mutually compatible.
  • This is a compatibility case introduced by the version transition, but it does not introduce new application-state coordination, concurrency, retry ordering, or a new algorithm.
Sources

examples/java/pom.xml[13-16]

        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <selenium.version>4.54.0</selenium.version>

examples/java/src/test/java/dev/selenium/bidi/cdp/CdpApiTest.java[19-30]

import org.openqa.selenium.devtools.v158.browser.Browser;
import org.openqa.selenium.devtools.v158.network.Network;
import org.openqa.selenium.devtools.v158.network.model.Headers;
import org.openqa.selenium.support.ui.WebDriverWait;

public class CdpApiTest extends BaseTest {
  DevTools devTools;

  @BeforeEach
  public void createSession() {
    ChromeOptions options = getDefaultChromeOptions();
    options.setBrowserVersion("158");

examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs[9-22]

using OpenQA.Selenium.DevTools.V158.Browser;
using OpenQA.Selenium.DevTools.V158.Network;
using OpenQA.Selenium.DevTools.V158.Performance;


namespace SeleniumDocs.BiDi.CDP
{
    [TestClass]
    public class NetworkTest : BaseTest
    {
        [TestInitialize]
        public void Startup()
        {
            StartDriver("158");

examples/ruby/Gemfile.lock[53-55]

    selenium-devtools (0.158.0)
      selenium-webdriver (~> 4.2)
    selenium-webdriver (4.54.0)
Potential damage 🟡 Medium 🩹 Recoverable

  • Conditionally, if the new package/API versions are unavailable or incompatible with an example's source or browser, the affected language suite may fail dependency resolution, compilation, or browser-test execution.
  • The consequence is limited to the affected documentation examples and their validation workflows; the changed code does not write persistent application state or control an external production service.
  • Reverting the version alignment or making a corresponding source adjustment restores the suite.
  • The equal-importance baseline is used for all capabilities because no business-criticality declaration was supplied.
  • Reverting the dependency and namespace/browser-version changes restores the prior known configuration.
  • If the newer package has already been adopted in a consumer environment, updating that consumer or pinning the prior package is required; no persistent state repair or external-effect compensation is indicated.
Sources

examples/java/pom.xml[13-16]

        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <selenium.version>4.54.0</selenium.version>

examples/java/src/test/java/dev/selenium/bidi/cdp/CdpApiTest.java[19-30]

import org.openqa.selenium.devtools.v158.browser.Browser;
import org.openqa.selenium.devtools.v158.network.Network;
import org.openqa.selenium.devtools.v158.network.model.Headers;
import org.openqa.selenium.support.ui.WebDriverWait;

public class CdpApiTest extends BaseTest {
  DevTools devTools;

  @BeforeEach
  public void createSession() {
    ChromeOptions options = getDefaultChromeOptions();
    options.setBrowserVersion("158");

examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs[9-22]

using OpenQA.Selenium.DevTools.V158.Browser;
using OpenQA.Selenium.DevTools.V158.Network;
using OpenQA.Selenium.DevTools.V158.Performance;


namespace SeleniumDocs.BiDi.CDP
{
    [TestClass]
    public class NetworkTest : BaseTest
    {
        [TestInitialize]
        public void Startup()
        {
            StartDriver("158");

examples/ruby/Gemfile.lock[53-55]

    selenium-devtools (0.158.0)
      selenium-webdriver (~> 4.2)
    selenium-webdriver (4.54.0)
Assessed commit cfbffee
Diagram

graph TD
  A["Java and .NET examples"] --> B["Selenium 4.54"] --> C["CDP v158 bindings"] --> D["Chrome 158"]
  E["Other language examples"] --> B
  F["Ruby devtools gem"] --> D
Loading
High-Level Assessment

Keep the coordinated version bump: matching dependency declarations, lockfiles, CDP namespaces, and requested browser versions is the simplest approach. A broader dependency-management change would add scope without benefiting this release update.

Files changed (11) +41 / -41

Tests (3) +22 / -22
NetworkTest.csMove .NET CDP network tests to v158 +9/-9

Move .NET CDP network tests to v158

• Switches Browser, Network, and Performance imports and version-specific commands to V158. Requests browser version 158 during test setup.

examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs

CdpApiTest.javaMove Java CDP API tests to v158 +4/-4

Move Java CDP API tests to v158

• Switches Browser and Network imports to v158 and requests Chrome version 158.

examples/java/src/test/java/dev/selenium/bidi/cdp/CdpApiTest.java

NetworkTest.javaSwitch Java network tests to v158 CDP imports +9/-9

Switch Java network tests to v158 CDP imports

• Moves Browser, Network, Performance, and related model imports from v157 to v158.

examples/java/src/test/java/dev/selenium/bidi/cdp/NetworkTest.java

Other (8) +19 / -19
SeleniumDocs.csprojBump .NET Selenium packages to 4.54.0 +2/-2

Bump .NET Selenium packages to 4.54.0

• Updates Selenium.Support and Selenium.WebDriver package references from 4.53.0 to 4.54.0.

examples/dotnet/SeleniumDocs/SeleniumDocs.csproj

build.gradleBump the Gradle Selenium default to 4.54.0 +1/-1

Bump the Gradle Selenium default to 4.54.0

• Changes the default seleniumVersion property while preserving the system-property override.

examples/java/build.gradle

pom.xmlBump the Maven Selenium version to 4.54.0 +1/-1

Bump the Maven Selenium version to 4.54.0

• Updates the selenium.version property used by the Java Maven examples.

examples/java/pom.xml

package.jsonBump JavaScript selenium-webdriver to 4.54.0 +1/-1

Bump JavaScript selenium-webdriver to 4.54.0

• Updates the direct selenium-webdriver dependency from 4.53.0 to 4.54.0.

examples/javascript/package.json

package-lock.jsonLock JavaScript selenium-webdriver at 4.54.0 +7/-7

Lock JavaScript selenium-webdriver at 4.54.0

• Synchronizes the dependency entry and resolved package metadata, including the tarball URL and integrity hash.

examples/javascript/package-lock.json

pom.xmlBump Kotlin Selenium dependency to 4.54.0 +1/-1

Bump Kotlin Selenium dependency to 4.54.0

• Updates the selenium.version Maven property from 4.53.0 to 4.54.0.

examples/kotlin/pom.xml

GemfileBump Ruby Selenium and devtools gems +2/-2

Bump Ruby Selenium and devtools gems

• Pins selenium-webdriver to 4.54.0 and selenium-devtools to 0.158.0.

examples/ruby/Gemfile

Gemfile.lockLock updated Ruby Selenium gems +4/-4

Lock updated Ruby Selenium gems

• Synchronizes resolved selenium-webdriver and selenium-devtools versions with the Gemfile pins.

examples/ruby/Gemfile.lock

@qodo-code-review

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can show, collapse, or hide each part of a finding: code, evidence, and all

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@diemol
diemol merged commit 2f47dc6 into trunk Nov 24, 2026
26 of 27 checks passed
@diemol
diemol deleted the bump-selenium-4.54 branch November 24, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant