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 FirefoxBinary class and FirefoxOptions.binary property were deprecated in #13476.
This PR removes the entire firefox_binary module and all tests and attributes that reference it.
🔧 Implementation Notes
This code has been deprecated for 2 years, and most of it doesn't even work correctly because of incorrect platform detection logic. It also does some crazy stuff with windows registry lookups and weird platform-specific stuff that just isn't relevant on modern systems. Rather than fix and maintain it, it's time to remove it.
💡 Additional Considerations
The modern way to specify a custom Firefox location is via binary_location on the Options class or make it available in your system PATH.
🔄 Types of changes
Breaking change (fix or feature that would cause existing functionality to change)
PR Type
Enhancement
Description
Removes deprecated FirefoxBinary class and entire module
Removes binary property from FirefoxOptions class
Removes related tests and documentation references
Cleans up mypy configuration for Windows registry imports
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
💥 What does this PR do?
This
FirefoxBinaryclass andFirefoxOptions.binaryproperty were deprecated in #13476.This PR removes the entire
firefox_binarymodule and all tests and attributes that reference it.🔧 Implementation Notes
This code has been deprecated for 2 years, and most of it doesn't even work correctly because of incorrect platform detection logic. It also does some crazy stuff with windows registry lookups and weird platform-specific stuff that just isn't relevant on modern systems. Rather than fix and maintain it, it's time to remove it.
💡 Additional Considerations
The modern way to specify a custom Firefox location is via
binary_locationon theOptionsclass or make it available in your systemPATH.🔄 Types of changes
PR Type
Enhancement
Description
Removes deprecated
FirefoxBinaryclass and entire moduleRemoves
binaryproperty fromFirefoxOptionsclassRemoves related tests and documentation references
Cleans up mypy configuration for Windows registry imports
Diagram Walkthrough
File Walkthrough
firefox_binary.py
Complete removal of deprecated FirefoxBinary modulepy/selenium/webdriver/firefox/firefox_binary.py
FirefoxBinaryclass with platform detection logicoptions.py
Remove deprecated binary property from Optionspy/selenium/webdriver/firefox/options.py
FirefoxBinaryclassbinaryproperty getter and setterbinary_locationproperty as the modern alternativeOptionsclass by removing legacy binary handlingfirefox_options_tests.py
Remove deprecated binary property testpy/test/unit/selenium/webdriver/firefox/firefox_options_tests.py
FirefoxBinaryclasstest_set_binary_with_firefox_binarythat testeddeprecated property
test_set_binary_with_pathtest for modern approachapi.rst
Remove FirefoxBinary from API documentationpy/docs/source/api.rst
selenium.webdriver.firefox.firefox_binaryfrom autosummarydocumentation
firefox_profile,options, and other modulespyproject.toml
Remove _winreg mypy configurationpy/pyproject.toml
_winregmodulesuppression