Change8

selenium-4.34.0

Breaking Changes
📦 seleniumView on GitHub →
1 breaking10 features🐛 13 fixes1 deprecations🔧 14 symbols

Summary

This release adds several new BiDi options and API enhancements, fixes numerous bugs, deprecates Java FtpProxy, and introduces a breaking namespace change in the .NET bindings.

⚠️ Breaking Changes

  • dotnet: Simplified modules namespace for end users, requiring updated import paths for Selenium .NET BiDi classes. Update your using statements to the new namespace.

Migration Steps

  1. Update .NET import statements to the new simplified namespace as per the breaking change.
  2. Replace any usage of the hard-coded capability string "se:downloadsEnabled" with CapabilityType.ENABLE_DOWNLOADS.
  3. Avoid using the deprecated java FtpProxy class; switch to the recommended proxy configuration.
  4. If using the removed stylecop files in .NET projects, delete them.

✨ New Features

  • Added RemoteWebDriver.isDownloadsEnabled() method.
  • Added AcceptInsecureCerts and Proxy options when creating a new user context in .NET BiDi.
  • Added enable_webextensions option for Chromium-based browsers in Python BiDi.
  • Implemented BiDi permissions module in Python.
  • Added timestamp field to HistoryUpdatedParams class in Python BiDi.
  • Added BiDi script module commands in Python.
  • Added GreedySlotSelector as a built-in slot-selector option in Grid.
  • Added constant CapabilityType.ENABLE_DOWNLOADS to replace hard-coded se:downloadsEnabled.
  • Added new script to auto-generate Python API docs.
  • Added support for beta Chrome in Ruby (re-added after revert).

🐛 Bug Fixes

  • Fixed pytest_ignore_collect hook to respect --ignore.
  • Fixed type error for attribute in remote_connection.py.
  • Fixed import for type hint in Python.
  • Fixed Mypy type annotation errors across multiple modules.
  • Fixed possible TypeError in expected conditions.
  • Fixed error handler check_response.
  • Fixed child process terminate method in Ruby.
  • Fixed silent failure on invalid log level in Grid.
  • Fixed formatting and linting issues (ruff, ruff version bump).
  • Fixed errors in browser.py related to issue 15697.
  • Fixed driver_element_finding_tests.py.
  • Fixed remote/webdriver.py Mypy errors.
  • Fixed type errors in server.py refactor.

🔧 Affected Symbols

RemoteWebDriver.isDownloadsEnabledCapabilityType.ENABLE_DOWNLOADSAcceptInsecureCertsProxy (user context options)enable_webextensionsBiDiPermissionsHistoryUpdatedParams.timestampGreedySlotSelectorremote_connection.py attributeremote/webdriver.pyserver.pyFtpProxy.NET BiDi namespace (e.g., Selenium.WebDriver.BiDi)stylecop files (removed)

⚡ Deprecations

  • java: FtpProxy class is deprecated. Use alternative proxy configuration classes.