Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/dotnet/SeleniumDocs/BaseTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class BaseTest
protected IWebDriver driver;
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 ↗

private static readonly string BaseDirectory = AppContext.BaseDirectory;
private const string RelativePathToGrid = "../../../../../";
private readonly string _examplesDirectory = Path.GetFullPath(Path.Combine(BaseDirectory, RelativePathToGrid));
Expand Down
18 changes: 9 additions & 9 deletions examples/dotnet/SeleniumDocs/BiDi/CDP/NetworkTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using OpenQA.Selenium;
using OpenQA.Selenium.DevTools;
using System.Linq;
using OpenQA.Selenium.DevTools.V155.Browser;
using OpenQA.Selenium.DevTools.V155.Network;
using OpenQA.Selenium.DevTools.V155.Performance;
using OpenQA.Selenium.DevTools.V156.Browser;
using OpenQA.Selenium.DevTools.V156.Network;
using OpenQA.Selenium.DevTools.V156.Performance;


namespace SeleniumDocs.BiDi.CDP
Expand All @@ -19,7 +19,7 @@ public class NetworkTest : BaseTest
[TestInitialize]
public void Startup()
{
StartDriver("155");
StartDriver("156");
}

[TestMethod]
Expand Down Expand Up @@ -112,9 +112,9 @@ public async Task PerformanceMetrics()
driver.Url = "https://www.selenium.dev/selenium/web/frameset.html";

var session = ((IDevTools)driver).GetDevToolsSession();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V155.DevToolsSessionDomains>();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V156.DevToolsSessionDomains>();

await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V155.Performance.EnableCommandSettings());
await domains.Performance.Enable(new OpenQA.Selenium.DevTools.V156.Performance.EnableCommandSettings());
var metricsResponse =
await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
new GetMetricsCommandSettings()
Expand All @@ -133,8 +133,8 @@ await session.SendCommand<GetMetricsCommandSettings, GetMetricsCommandResponse>(
public async Task SetCookie()
{
var session = ((IDevTools)driver).GetDevToolsSession();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V155.DevToolsSessionDomains>();
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V155.Network.EnableCommandSettings());
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V156.DevToolsSessionDomains>();
await domains.Network.Enable(new OpenQA.Selenium.DevTools.V156.Network.EnableCommandSettings());

var cookieCommandSettings = new SetCookieCommandSettings
{
Expand All @@ -156,7 +156,7 @@ public async Task WaitForDownload()
driver.Url = "https://www.selenium.dev/selenium/web/downloads/download.html";

var session = ((IDevTools)driver).GetDevToolsSession();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V155.DevToolsSessionDomains>();
var domains = session.GetVersionSpecificDomains<OpenQA.Selenium.DevTools.V156.DevToolsSessionDomains>();

var downloadPath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
Directory.CreateDirectory(downloadPath);
Expand Down
4 changes: 2 additions & 2 deletions examples/dotnet/SeleniumDocs/SeleniumDocs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.7.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.0" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.0" />
<PackageReference Include="Selenium.Support" Version="4.51.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.51.0" />
<PackageReference Include="Selenium.Support" Version="4.52.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.52.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion examples/java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {
mavenCentral()
}

ext['seleniumVersion'] = System.getProperty('selenium.version', '4.51.0')
ext['seleniumVersion'] = System.getProperty('selenium.version', '4.52.0')

dependencies {
testImplementation "org.seleniumhq.selenium:selenium-java:${seleniumVersion}"
Expand Down
2 changes: 1 addition & 1 deletion examples/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<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.51.0</selenium.version>
<selenium.version>4.52.0</selenium.version>
</properties>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.devtools.DevTools;
import org.openqa.selenium.devtools.HasDevTools;
import org.openqa.selenium.devtools.v155.browser.Browser;
import org.openqa.selenium.devtools.v155.network.Network;
import org.openqa.selenium.devtools.v155.network.model.Headers;
import org.openqa.selenium.devtools.v156.browser.Browser;
import org.openqa.selenium.devtools.v156.network.Network;
import org.openqa.selenium.devtools.v156.network.model.Headers;
import org.openqa.selenium.support.ui.WebDriverWait;

public class CdpApiTest extends BaseTest {
Expand All @@ -27,7 +27,7 @@ public class CdpApiTest extends BaseTest {
@BeforeEach
public void createSession() {
ChromeOptions options = getDefaultChromeOptions();
options.setBrowserVersion("155");
options.setBrowserVersion("156");
driver = new ChromeDriver(options);
wait = new WebDriverWait(driver, Duration.ofSeconds(10));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
import org.openqa.selenium.devtools.DevTools;
import org.openqa.selenium.devtools.HasDevTools;
import org.openqa.selenium.devtools.NetworkInterceptor;
import org.openqa.selenium.devtools.v155.browser.Browser;
import org.openqa.selenium.devtools.v155.network.Network;
import org.openqa.selenium.devtools.v155.network.model.CookiePartitionKey;
import org.openqa.selenium.devtools.v155.network.model.CookiePriority;
import org.openqa.selenium.devtools.v155.network.model.CookieSameSite;
import org.openqa.selenium.devtools.v155.network.model.CookieSourceScheme;
import org.openqa.selenium.devtools.v155.network.model.TimeSinceEpoch;
import org.openqa.selenium.devtools.v155.performance.Performance;
import org.openqa.selenium.devtools.v155.performance.model.Metric;
import org.openqa.selenium.devtools.v156.browser.Browser;
import org.openqa.selenium.devtools.v156.network.Network;
import org.openqa.selenium.devtools.v156.network.model.CookiePartitionKey;
import org.openqa.selenium.devtools.v156.network.model.CookiePriority;
import org.openqa.selenium.devtools.v156.network.model.CookieSameSite;
import org.openqa.selenium.devtools.v156.network.model.CookieSourceScheme;
import org.openqa.selenium.devtools.v156.network.model.TimeSinceEpoch;
import org.openqa.selenium.devtools.v156.performance.Performance;
import org.openqa.selenium.devtools.v156.performance.model.Metric;
import org.openqa.selenium.remote.http.*;
import org.openqa.selenium.support.ui.WebDriverWait;

Expand Down
16 changes: 8 additions & 8 deletions examples/javascript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "Apache-2.0",
"dependencies": {
"assert": "2.1.0",
"selenium-webdriver": "4.51.0"
"selenium-webdriver": "4.52.0"
},
"devDependencies": {
"mocha": "12.0.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/javascript/test/drivers/gridServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const http = require('node:http')
const path = require('node:path')
const portprober = require('selenium-webdriver/net/portprober')

const SERVER_JAR = path.join(__dirname, '..', '..', '..', 'selenium-server-4.51.0.jar')
const SERVER_JAR = path.join(__dirname, '..', '..', '..', 'selenium-server-4.52.0.jar')

function waitForServer(url, timeout) {
const deadline = Date.now() + timeout
Expand Down
2 changes: 1 addition & 1 deletion examples/kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<maven-surefire-plugin.version>3.6.1</maven-surefire-plugin.version>

<java.version>17</java.version>
<selenium.version>4.51.0</selenium.version>
<selenium.version>4.52.0</selenium.version>

<maven.compiler.target>${java.version}</maven.compiler.target>
<maven.compiler.source>${java.version}</maven.compiler.source>
Expand Down
6 changes: 3 additions & 3 deletions examples/python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def server_old(request):
os.path.abspath(__file__)
)
),
"selenium-server-4.51.0.jar",
"selenium-server-4.52.0.jar",
)

def wait_for_server(url, timeout):
Expand Down Expand Up @@ -214,7 +214,7 @@ def server():
)
)
),
"selenium-server-4.51.0.jar",
"selenium-server-4.52.0.jar",
)

args = [
Expand Down Expand Up @@ -292,7 +292,7 @@ def grid_server():
)
)
),
"selenium-server-4.51.0.jar",
"selenium-server-4.52.0.jar",
)

args = [
Expand Down
2 changes: 1 addition & 1 deletion examples/ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ gem 'rspec', '~> 3.0'
gem 'rubocop', '~> 1.35'
gem 'rubocop-rspec', '~> 3.0'
gem 'selenium-devtools', '= 0.156.0'
gem 'selenium-webdriver', '= 4.51.0'
gem 'selenium-webdriver', '= 4.52.0'
6 changes: 3 additions & 3 deletions examples/ruby/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ GEM
rubyzip (3.7.0)
selenium-devtools (0.156.0)
selenium-webdriver (~> 4.2)
selenium-webdriver (4.51.0)
selenium-webdriver (4.52.0)
base64 (~> 0.2)
logger (~> 1.4)
rubyzip (>= 1.2.2, < 4.0)
Expand All @@ -77,7 +77,7 @@ DEPENDENCIES
rubocop (~> 1.35)
rubocop-rspec (~> 3.0)
selenium-devtools (= 0.156.0)
selenium-webdriver (= 4.51.0)
selenium-webdriver (= 4.52.0)

BUNDLED WITH
2.5.6
4.0.23
2 changes: 1 addition & 1 deletion examples/ruby/spec/drivers/remote_webdriver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let(:target_directory) { File.join(Dir.tmpdir, SecureRandom.uuid) }
let(:wait) { Selenium::WebDriver::Wait.new(timeout: 2) }
let(:server) do
Selenium::Server.new(File.expand_path(File.join('..', '..', '..', 'selenium-server-4.51.0.jar'), __dir__),
Selenium::Server.new(File.expand_path(File.join('..', '..', '..', 'selenium-server-4.52.0.jar'), __dir__),
background: true,
args: %w[--selenium-manager true --enable-managed-downloads true])
end
Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions website_and_docs/layouts/downloads/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="card-body">
<p class="card-text">
Latest stable version
<a href="https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.51.0/selenium-server-4.51.0.jar">4.51.0</a>
<a href="https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.52.0/selenium-server-4.52.0.jar">4.52.0</a>
</p>
<p class="card-text">
To use the Selenium Server in a Grid configuration, see the
Expand Down Expand Up @@ -115,7 +115,7 @@ <h2 class="card-title">
<div class="card-body">
<h2 class="card-title">C# NuGet</h2>
<p class="card-text w-lg-75">
Nuget latest release is 4.51.0 Released on October 9, 2026.
Nuget latest release is 4.52.0 Released on October 29, 2026.
</p>
<ul>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h2 id="bindings" class="card-title">Selenium Clients and WebDriver Language Bin
<p class="card-text m-0 pb-1">
Stable:
<a href="https://www.nuget.org/packages/Selenium.WebDriver" class="card-link">
4.51.0 (October 9, 2026)
4.52.0 (October 29, 2026)
</a>
</p>
<p class="card-text m-0 pb-1">
Expand All @@ -54,8 +54,8 @@ <h2 id="bindings" class="card-title">Selenium Clients and WebDriver Language Bin
</p>
<p class="card-text m-0 pb-1">
Stable:
<a href="https://rubygems.org/gems/selenium-webdriver/versions/4.51.0" class="card-link">
4.51.0 (October 9, 2026)
<a href="https://rubygems.org/gems/selenium-webdriver/versions/4.52.0" class="card-link">
4.52.0 (October 29, 2026)
</a>
</p>
<p class="card-text m-0 pb-1">
Expand All @@ -82,8 +82,8 @@ <h2 id="bindings" class="card-title">Selenium Clients and WebDriver Language Bin
</p>
<p class="card-text m-0 pb-1">
Stable:
<a href="https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.51.0/selenium-java-4.51.0.zip" class="card-link">
4.51.0 (October 9, 2026)
<a href="https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.52.0/selenium-java-4.52.0.zip" class="card-link">
4.52.0 (October 29, 2026)
</a>
</p>
<p class="card-text m-0 pb-1">
Expand Down Expand Up @@ -111,7 +111,7 @@ <h2 id="bindings" class="card-title">Selenium Clients and WebDriver Language Bin
<p class="card-text m-0 pb-1">
Stable:
<a href="https://pypi.python.org/pypi/selenium" class="card-link">
4.51.0 (October 9, 2026)
4.52.0 (October 29, 2026)
</a>
</p>
<p class="card-text m-0 pb-1">
Expand Down Expand Up @@ -139,7 +139,7 @@ <h2 id="bindings" class="card-title">Selenium Clients and WebDriver Language Bin
<p class="card-text m-0 pb-1">
Stable:
<a href="https://npmjs.org/package/selenium-webdriver" class="card-link">
4.51.0 (October 9, 2026)
4.52.0 (October 29, 2026)
</a>
</p>
<p class="card-text m-0 pb-1">
Expand Down
Loading