Skip to content

Update browser testing dependencies: Selenium 4.40.0, Playwright 1.57.0#65304

Open
Copilot wants to merge 3 commits intomainfrom
copilot/update-browser-testing-dependencies
Open

Update browser testing dependencies: Selenium 4.40.0, Playwright 1.57.0#65304
Copilot wants to merge 3 commits intomainfrom
copilot/update-browser-testing-dependencies

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Update browser testing dependencies: Selenium 4.40.0, Playwright 1.57.0

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Update Selenium and Playwright to latest stable versions and fix Selenium 4.40.0 breaking changes.

Description

Updates browser automation dependencies across E2E tests and benchmarking infrastructure:

  • Selenium: 4.38.0 → 4.40.0 (Selenium.WebDriver, Selenium.Support)
  • Playwright: 1.56.0 → 1.57.0 (NuGet package and Docker image)
  • Breaking Change Fix: Updated BiDi namespace imports in E2E test files to address Selenium 4.40.0 API changes

Files modified:

  • eng/Versions.props: Package version properties
  • src/Components/benchmarkapps/Wasm.Performance/dockerfile: Docker image tag
  • src/Components/test/E2ETest/ServerExecutionTests/ServerReconnectionWithoutStateTest.cs: Fixed BiDi namespace import
  • src/Components/test/E2ETest/ServerExecutionTests/ServerResumeWithExpiredStateTest.cs: Fixed BiDi namespace import
  • src/Components/test/E2ETest/ServerRenderingTests/EnhancedNavigationTest.cs: Fixed BiDi namespace import

Ensures Playwright package version matches Docker image version for consistent benchmark execution environment.

Selenium 4.40.0 Breaking Change: The OpenQA.Selenium.BiDi.Communication namespace was removed as part of Selenium's refactoring to align with W3C WebDriver BiDi standards. Updated all affected test files to use OpenQA.Selenium.BiDi instead.

cc @dotnet/aspnet-build

Original prompt

This section details on the original issue you should resolve

<issue_title>Request Browser-Testing Dependencies Update</issue_title>
<issue_description>## Description

Selenium is used in the aspnetcore repo for automated E2E integration testing.
Playwright is used in the aspnetcore repo for some benchmarking apps. We need to ensure the docker file and the package version match.

Instructions

To update the Selenium and Playwright versions, these files need to be updated:

Packages

Actions

Please, open the PR against main branch and include changes to the files listed above.

Also:

  • mention @dotnet/aspnet-build in the opened Pull Request - this will be a responsible engineer for changes validation.
  • add the build-ops label to the opened Pull Request
    </issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Update Selenium.WebDriver from 4.38.0 to 4.40.0
- Update Selenium.Support from 4.38.0 to 4.40.0
- Update Microsoft.Playwright from 1.56.0 to 1.57.0
- Update Playwright Docker image from v1.56.0 to v1.57.0

Co-authored-by: halter73 <54385+halter73@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Selenium and Playwright versions in repository Update browser testing dependencies: Selenium 4.40.0, Playwright 1.57.0 Feb 3, 2026
Copilot AI requested a review from halter73 February 3, 2026 02:15
@halter73 halter73 marked this pull request as ready for review February 3, 2026 02:17
@halter73 halter73 requested a review from a team as a code owner February 3, 2026 02:17
Copilot AI review requested due to automatic review settings February 3, 2026 02:17
@halter73 halter73 requested review from a team and wtgodbe as code owners February 3, 2026 02:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates browser automation dependencies used by E2E tests and benchmark infrastructure to keep tooling current and ensure the Playwright NuGet package version aligns with the Playwright Docker image used for benchmarks.

Changes:

  • Bump Selenium.WebDriver and Selenium.Support versions from 4.38.0 to 4.40.0.
  • Bump Microsoft.Playwright version from 1.56.0 to 1.57.0.
  • Update the Wasm.Performance benchmark Docker image tag to mcr.microsoft.com/playwright/dotnet:v1.57.0-jammy-amd64.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eng/Versions.props Updates centralized version properties for Selenium and Playwright packages.
src/Components/benchmarkapps/Wasm.Performance/dockerfile Updates Playwright Docker base image tag to match the Playwright package version.

@wtgodbe
Copy link
Member

wtgodbe commented Feb 3, 2026

D:\a_work\1\s\src\Components\test\E2ETest\ServerExecutionTests\ServerReconnectionWithoutStateTest.cs(14,28): error CS0234: The type or namespace name 'Communication' does not exist in the namespace 'OpenQA.Selenium.BiDi' (are you missing an assembly reference?) [D:\a_work\1\s\src\Components\test\E2ETest\Microsoft.AspNetCore.Components.E2ETests.csproj]

Was there an API change in Selenium (in a patch?)?

Copy link
Member

@halter73 halter73 left a comment

Choose a reason for hiding this comment

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

D:\a_work\1\s\src\Components\test\E2ETest\ServerExecutionTests\ServerReconnectionWithoutStateTest.cs(14,28): error CS0234: The type or namespace name 'Communication' does not exist in the namespace 'OpenQA.Selenium.BiDi' (are you missing an assembly reference?) [D:\a_work\1\s\src\Components\test\E2ETest\Microsoft.AspNetCore.Components.E2ETests.csproj]

Was there an API change in Selenium (in a patch?)?

@copilot Can you track down if there were any breaking API changes to selenium and, if so, react to it in the ServerReconnectionWithoutStateTest?

…namespace

Update using statements to use OpenQA.Selenium.BiDi instead of OpenQA.Selenium.BiDi.Communication which was removed in Selenium 4.40.0

Co-authored-by: halter73 <54385+halter73@users.noreply.github.com>
auto-merge was automatically disabled February 5, 2026 01:14

Head branch was pushed to by a user without write access

Copy link
Contributor Author

Copilot AI commented Feb 5, 2026

D:\a_work\1\s\src\Components\test\E2ETest\ServerExecutionTests\ServerReconnectionWithoutStateTest.cs(14,28): error CS0234: The type or namespace name 'Communication' does not exist in the namespac...

Yes, Selenium 4.40.0 introduced a breaking change that removed the BiDi.Communication namespace. The fix was to update the using statements from OpenQA.Selenium.BiDi.Communication to OpenQA.Selenium.BiDi in the affected test files. Fixed in 757a7fa.

Copilot AI requested a review from halter73 February 5, 2026 01:16
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.

Request Browser-Testing Dependencies Update

3 participants