Skip to content

Bump Selenium to 4.52.0 and CDP to v156 in examples - #2956

Merged
diemol merged 4 commits into
trunkfrom
bump-selenium-4.52.0
Nov 2, 2026
Merged

diemol merged 4 commits into
trunkfrom
bump-selenium-4.52.0

Conversation

@diemol

@diemol diemol commented Nov 2, 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

Bumps Selenium to 4.52.0 and CDP to v156 in all code examples:

  • Java, Kotlin, .NET, JavaScript, Ruby: Selenium 4.52.0 (lockfiles updated).
  • Java and .NET CDP examples: v155 -> v156, and the Chrome version they pin is now 156.
  • Selenium Server jar name used by the Grid tests (Python, .NET, JavaScript, Ruby): 4.52.0. The committed examples/selenium-server-4.51.0.jar is replaced with 4.52.0.
  • Downloads page and bindings cards: 4.52.0 (October 29, 2026).

Python (selenium==4.52.0) and Ruby selenium-devtools (0.156.0) were already bumped. Line counts did not change, so gh-codeblock ranges stay the same.

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>
@qodo-code-review

Copy link
Copy Markdown
Contributor

PR Summary by Qodo

Bump Selenium examples to 4.52.0 and CDP examples to v156

⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Align Java, Kotlin, .NET, JavaScript, and Ruby examples with Selenium 4.52.0.
• Move Java and .NET CDP examples to v156.
• Point Grid test fixtures at the 4.52.0 Server jar.
Diagram

graph TD
  Pins["Dependency pins"] --> CDP["CDP examples"] --> DevTools(["DevTools API"])
  Pins --> Fixtures["Grid fixtures"] --> Jar["Server jar"] --> Grid(["Grid runtime"])
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Provision the Server jar during test setup
  • ➕ Keeps the Server version synchronized with the release used by Grid tests.
  • ➕ Avoids committing a large binary.
  • ➖ Adds a network dependency and setup steps to each affected test environment.
2. Centralize the Server jar version
  • ➕ Reduces version drift across four language suites.
  • ➖ Introduces cross-language configuration for a currently simple release bump.

Recommendation: Keep the direct dependency and CDP updates, but resolve Server jar provisioning before merging: the checkout contains selenium-server-4.51.0.jar, not the newly referenced 4.52.0 jar. Committing the matching jar or downloading it in test setup is necessary for the affected Grid tests. Also verify the JavaScript lockfile’s new Node engine constraint and the Ruby lockfile’s Bundler 4.0.23 change.

Files changed (15) +44 / -44

Other (15) +44 / -44
BaseTest.csPoint .NET Grid tests at Server 4.52.0 +1/-1

Point .NET Grid tests at Server 4.52.0

• Changes the Server jar filename used when the shared test base starts a local Grid.

examples/dotnet/SeleniumDocs/BaseTest.cs

NetworkTest.csUse v156 CDP types in .NET network examples +8/-8

Use v156 CDP types in .NET network examples

• Switches Browser, Network, and Performance imports and version-specific session commands from V155 to V156.

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

SeleniumDocs.csprojPin .NET Selenium packages to 4.52.0 +2/-2

Pin .NET Selenium packages to 4.52.0

• Raises Selenium.Support and Selenium.WebDriver together from 4.51.0 to 4.52.0.

examples/dotnet/SeleniumDocs/SeleniumDocs.csproj

build.gradleSet the Gradle Selenium default to 4.52.0 +1/-1

Set the Gradle Selenium default to 4.52.0

• Updates the default version used by the Java example dependencies while preserving the system-property override.

examples/java/build.gradle

pom.xmlSet the Maven Selenium version to 4.52.0 +1/-1

Set the Maven Selenium version to 4.52.0

• Updates the shared property used by the Java Selenium dependencies.

examples/java/pom.xml

CdpApiTest.javaUse v156 CDP imports in Java API examples +3/-3

Use v156 CDP imports in Java API examples

• Moves Browser, Network, and Headers imports from the v155 package to v156.

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

NetworkTest.javaUse v156 CDP imports in Java network tests +9/-9

Use v156 CDP imports in Java network tests

• Moves Browser, Network, cookie model, and Performance imports to the v156 packages.

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

package.jsonPin JavaScript WebDriver to 4.52.0 +1/-1

Pin JavaScript WebDriver to 4.52.0

• Updates the selenium-webdriver dependency used by the JavaScript examples.

examples/javascript/package.json

package-lock.jsonLock JavaScript WebDriver 4.52.0 +8/-8

Lock JavaScript WebDriver 4.52.0

• Refreshes the locked version, tarball URL, and integrity hash. The package’s recorded Node engine requirement also changes to ^22.23.4, ^24.22.1, or >=26.12.1.

examples/javascript/package-lock.json

gridServer.jsPoint JavaScript Grid tests at Server 4.52.0 +1/-1

Point JavaScript Grid tests at Server 4.52.0

• Changes the local Server jar path used by the Grid test helper.

examples/javascript/test/drivers/gridServer.js

pom.xmlSet the Kotlin Selenium version to 4.52.0 +1/-1

Set the Kotlin Selenium version to 4.52.0

• Updates the Maven property controlling Selenium dependencies in the Kotlin examples.

examples/kotlin/pom.xml

conftest.pyPoint Python Grid fixtures at Server 4.52.0 +3/-3

Point Python Grid fixtures at Server 4.52.0

• Updates the jar filename in three fixtures that start a local Selenium Server.

examples/python/tests/conftest.py

GemfilePin Ruby WebDriver to 4.52.0 +1/-1

Pin Ruby WebDriver to 4.52.0

• Raises the selenium-webdriver gem pin while retaining selenium-devtools 0.156.0.

examples/ruby/Gemfile

Gemfile.lockLock Ruby WebDriver 4.52.0 +3/-3

Lock Ruby WebDriver 4.52.0

• Updates the resolved gem and dependency pin to 4.52.0. The Bundler version recorded in the lockfile also changes from 2.5.6 to 4.0.23.

examples/ruby/Gemfile.lock

remote_webdriver_spec.rbPoint Ruby remote-driver tests at Server 4.52.0 +1/-1

Point Ruby remote-driver tests at Server 4.52.0

• Changes the jar path used to start Selenium Server in the remote WebDriver spec.

examples/ruby/spec/drivers/remote_webdriver_spec.rb

@netlify

netlify Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit 59da3c7
🔍 Latest deploy log https://app.netlify.com/projects/selenium-dev/deploys/6ae88a7b506cf4325b41eef9
😎 Deploy Preview https://deploy-preview-2956--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 2, 2026 •

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📜 Skill insights (0)

Grey Divider


Action required

1. Grid example tests cannot start the server 🐞 Bug ≡ Correctness
Description
The Grid launchers now pass selenium-server-4.52.0.jar to Java, but that artifact was not added
alongside the existing 4.51.0 jar. When the .NET, JavaScript, Python, or Ruby Grid tests run from a
checkout, server startup fails and the tests error or time out before exercising their examples.
Code

examples/dotnet/SeleniumDocs/BaseTest.cs[20]

+        private const string ServerJarName = "selenium-server-4.52.0.jar";
Evidence
The examples/ directory contains selenium-server-4.51.0.jar but no 4.52.0 jar. The cited
launchers all request the absent 4.52.0 file, and the .NET and JavaScript launch paths explicitly
pass it to java -jar; the Python and Ruby launchers use the same filename.

examples/dotnet/SeleniumDocs/BaseTest.cs[20-23]
examples/dotnet/SeleniumDocs/BaseTest.cs[55-64]
examples/javascript/test/drivers/gridServer.js[6-6]
examples/javascript/test/drivers/gridServer.js[58-75]
examples/python/tests/conftest.py[206-233]
examples/python/tests/conftest.py[281-299]
examples/ruby/spec/drivers/remote_webdriver_spec.rb[9-17]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Grid launchers request a 4.52.0 server jar, but the repository contains only the 4.51.0 jar. Grid-backed examples cannot start their server.

## Fix Focus Areas
- examples/dotnet/SeleniumDocs/BaseTest.cs[20-20]
- examples/javascript/test/drivers/gridServer.js[6-6]
- examples/python/tests/conftest.py[159-159]
- examples/python/tests/conftest.py[217-217]
- examples/python/tests/conftest.py[295-295]
- examples/ruby/spec/drivers/remote_webdriver_spec.rb[10-10]

## Recommended Fix
Add the Selenium Server 4.52.0 jar at `examples/selenium-server-4.52.0.jar`, replacing the bundled 4.51.0 jar if appropriate, so every updated launcher resolves an existing artifact. Verify a Grid-backed test in each language.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
Review mode: Auto: ⚖️ Balanced: Broad dependency and artifact updates affect multiple example execution paths.

Grey Divider

Tip of the day
💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Previous reviews

Review updated until commit 59da3c7

Results up to commit e7368e0 ⚖️ Balanced


🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Action required
1. Grid example tests cannot start the server 🐞 Bug ≡ Correctness
Description
The Grid launchers now pass selenium-server-4.52.0.jar to Java, but that artifact was not added
alongside the existing 4.51.0 jar. When the .NET, JavaScript, Python, or Ruby Grid tests run from a
checkout, server startup fails and the tests error or time out before exercising their examples.
Code

examples/dotnet/SeleniumDocs/BaseTest.cs[20]

+        private const string ServerJarName = "selenium-server-4.52.0.jar";
Evidence
The examples/ directory contains selenium-server-4.51.0.jar but no 4.52.0 jar. The cited
launchers all request the absent 4.52.0 file, and the .NET and JavaScript launch paths explicitly
pass it to java -jar; the Python and Ruby launchers use the same filename.

examples/dotnet/SeleniumDocs/BaseTest.cs[20-23]
examples/dotnet/SeleniumDocs/BaseTest.cs[55-64]
examples/javascript/test/drivers/gridServer.js[6-6]
examples/javascript/test/drivers/gridServer.js[58-75]
examples/python/tests/conftest.py[206-233]
examples/python/tests/conftest.py[281-299]
examples/ruby/spec/drivers/remote_webdriver_spec.rb[9-17]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The Grid launchers request a 4.52.0 server jar, but the repository contains only the 4.51.0 jar. Grid-backed examples cannot start their server.

## Fix Focus Areas
- examples/dotnet/SeleniumDocs/BaseTest.cs[20-20]
- examples/javascript/test/drivers/gridServer.js[6-6]
- examples/python/tests/conftest.py[159-159]
- examples/python/tests/conftest.py[217-217]
- examples/python/tests/conftest.py[295-295]
- examples/ruby/spec/drivers/remote_webdriver_spec.rb[10-10]

## Recommended Fix
Add the Selenium Server 4.52.0 jar at `examples/selenium-server-4.52.0.jar`, replacing the bundled 4.51.0 jar if appropriate, so every updated launcher resolves an existing artifact. Verify a Grid-backed test in each language.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Qodo Logo

protected Uri GridUrl;
private Process _webserverProcess;
private const string ServerJarName = "selenium-server-4.51.0.jar";
private const string ServerJarName = "selenium-server-4.52.0.jar";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Grid example tests cannot start the server 🐞 Bug ≡ Correctness

The Grid launchers now pass selenium-server-4.52.0.jar to Java, but that artifact was not added
alongside the existing 4.51.0 jar. When the .NET, JavaScript, Python, or Ruby Grid tests run from a
checkout, server startup fails and the tests error or time out before exercising their examples.
Agent Prompt
## Issue description
The Grid launchers request a 4.52.0 server jar, but the repository contains only the 4.51.0 jar. Grid-backed examples cannot start their server.

## Fix Focus Areas
- examples/dotnet/SeleniumDocs/BaseTest.cs[20-20]
- examples/javascript/test/drivers/gridServer.js[6-6]
- examples/python/tests/conftest.py[159-159]
- examples/python/tests/conftest.py[217-217]
- examples/python/tests/conftest.py[295-295]
- examples/ruby/spec/drivers/remote_webdriver_spec.rb[10-10]

## Recommended Fix
Add the Selenium Server 4.52.0 jar at `examples/selenium-server-4.52.0.jar`, replacing the bundled 4.51.0 jar if appropriate, so every updated launcher resolves an existing artifact. Verify a Grid-backed test in each language.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown
Contributor

Code review by qodo was updated up to the latest commit 358031b

diemol and others added 2 commits November 2, 2026 14:03
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown
Contributor

Code review by qodo was updated up to the latest commit 59da3c7

@diemol
diemol merged commit 9a18377 into trunk Nov 2, 2026
29 checks passed
@diemol
diemol deleted the bump-selenium-4.52.0 branch November 2, 2026 13:31
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