You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR updates the version of selenium used from 4.38 -> 4.41, and the devtools imports in example code from 142 -> 145.
Ruby's selenium-devtools is at 0.143.0 because that's the latest published version.
#2588 should also be merged to fix the dotnet issues when upgrading to 4.41
Motivation and Context
Python tests are currently failing in CI because they are importing a non-existent devtools version. This should fix that and bring all other examples up to date.
Types of changes
Change to the site (I have double-checked the Netlify deployment, and my changes look good)
Code example updated
Improved translation
Added new translation (and I also added a notice to each document missing translation)
I have used hugo to render the site/docs locally and I am sure it works.
PR Type
Enhancement
Description
Update Selenium WebDriver from 4.38.0 to 4.41.0 across all language examples
Update DevTools imports from v142 to v145 in Python and Java examples
Update Selenium Server JAR references from 4.38.0 to 4.41.0 in test configurations
Update package dependencies in JavaScript, .NET, Kotlin, and Ruby projects
Diagram Walkthrough
flowchart LR
A["Selenium 4.38.0"] -- "upgrade" --> B["Selenium 4.41.0"]
C["DevTools v142"] -- "upgrade" --> D["DevTools v145"]
B --> E["Python Examples"]
B --> F["Java Examples"]
B --> G[".NET Examples"]
B --> H["JavaScript Examples"]
B --> I["Kotlin Examples"]
B --> J["Ruby Examples"]
D --> E
D --> F
✅ Update devtools dependency for compatibilitySuggestion Impact:The commit updated selenium-devtools from 0.142.0 to 0.143.0, partially following the suggestion to bump the devtools version, though it did not update to the suggested 0.145.0.
Why: This suggestion correctly identifies a likely incompatibility between selenium-webdriver and selenium-devtools versions, which could lead to runtime errors, making it a critical fix.
High
High-level
Centralize hardcoded Selenium version strings
The Selenium server JAR filename is hardcoded in multiple test files across different languages. This should be centralized into a single variable per language ecosystem to simplify future version updates.
# Ina central Python config fileSELENIUM_VERSION="4.41.0"SELENIUM_SERVER_JAR= f"selenium-server-{SELENIUM_VERSION}.jar"
# examples/python/conftest.py@pytest.fixture(scope="function")
def server_old(request):_path=os.path.join(...,SELENIUM_SERVER_JAR)
# ...
# In a central.NET config file
public staticclassConfig{
public const string ServerJarName ="selenium-server-4.41.0.jar";}
# examples/dotnet/BaseTest.cs
public class BaseTest
{privateconststringServerJarName=Config.ServerJarName;// ...}
Suggestion importance[1-10]: 7
__
Why: This is a strong suggestion that addresses a clear maintainability issue, as the hardcoded version string is updated in multiple files (conftest.py, BaseTest.cs, remote_webdriver_spec.rb), making future updates unnecessarily complex.
Medium
General
Switch to version-agnostic DevTools imports
Replace version-specific DevTools imports (e.g., v145) with non-versioned, generic imports to improve long-term maintainability.
Why: This is a valid suggestion that improves code maintainability by using generic DevTools imports, which would prevent the need for path updates in future releases.
Low
Use generic devtools import path
Replace the version-specific DevTools import for Headers with the generic, non-versioned import path to improve long-term maintainability.
Why: This is a valid suggestion that improves code maintainability by using a generic DevTools import path, which would prevent the need for path updates in future releases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Description
This PR updates the version of selenium used from
4.38->4.41, and the devtools imports in example code from142->145.Ruby's selenium-devtools is at
0.143.0because that's the latest published version.#2588 should also be merged to fix the dotnet issues when upgrading to
4.41Motivation and Context
Python tests are currently failing in CI because they are importing a non-existent devtools version. This should fix that and bring all other examples up to date.
Types of changes
Checklist
PR Type
Enhancement
Description
Update Selenium WebDriver from 4.38.0 to 4.41.0 across all language examples
Update DevTools imports from v142 to v145 in Python and Java examples
Update Selenium Server JAR references from 4.38.0 to 4.41.0 in test configurations
Update package dependencies in JavaScript, .NET, Kotlin, and Ruby projects
Diagram Walkthrough
File Walkthrough
11 files
Update DevTools import from v142 to v145Update Selenium Server JAR version referencesUpdate Selenium package version to 4.41.0Update DevTools imports from v142 to v145Update DevTools imports from v142 to v145Update Selenium Server JAR version referenceUpdate Selenium NuGet package versions to 4.41.0Update selenium-webdriver package to 4.41.0Update Selenium version property to 4.41.0Update selenium-webdriver gem to 4.41.0Update Selenium Server JAR version reference