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 py/docs/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ webdriver.common
selenium.webdriver.common.timeouts
selenium.webdriver.common.utils
selenium.webdriver.common.virtual_authenticator
selenium.webdriver.common.webdriver
selenium.webdriver.common.window

webdriver.common.actions
Expand Down Expand Up @@ -134,7 +135,6 @@ webdriver.firefox
.. autosummary::
:toctree: selenium_webdriver_firefox

selenium.webdriver.firefox.firefox_binary
selenium.webdriver.firefox.firefox_profile
selenium.webdriver.firefox.options
selenium.webdriver.firefox.remote_connection
Expand Down
Empty file modified py/generate_api_module_listing.py
100644 → 100755
Empty file.
4 changes: 0 additions & 4 deletions py/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,6 @@ warn_unreachable = false
# suppress error messages about imports that cannot be resolved.
ignore_missing_imports = true

[[tool.mypy._winreg]]
# suppress error messages about imports that cannot be resolved.
ignore_missing_imports = true

[tool.ruff]
extend-exclude = [
"selenium/webdriver/common/devtools/",
Expand Down
225 changes: 0 additions & 225 deletions py/selenium/webdriver/firefox/firefox_binary.py

This file was deleted.

17 changes: 0 additions & 17 deletions py/selenium/webdriver/firefox/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@

from typing import Any

from typing_extensions import deprecated

from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.common.options import ArgOptions
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile


Expand All @@ -48,20 +45,6 @@ def __init__(self) -> None:
self._profile: FirefoxProfile | None = None
self.log = Log()

@property
@deprecated("use binary_location instead")
def binary(self) -> FirefoxBinary:
"""Returns the FirefoxBinary instance."""
return FirefoxBinary(self._binary_location)

@binary.setter
@deprecated("use binary_location instead")
def binary(self, new_binary: str | FirefoxBinary) -> None:
"""Set location of browser binary (string or FirefoxBinary instance)."""
if isinstance(new_binary, FirefoxBinary):
new_binary = new_binary._start_cmd
self.binary_location = str(new_binary)

@property
def binary_location(self) -> str:
"""Returns the location of the binary."""
Expand Down
17 changes: 0 additions & 17 deletions py/test/unit/selenium/webdriver/firefox/firefox_options_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from selenium.common.exceptions import InvalidArgumentException
from selenium.webdriver.common.options import PageLoadStrategy
from selenium.webdriver.common.proxy import Proxy, ProxyType
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
from selenium.webdriver.firefox.options import Options

Expand All @@ -30,22 +29,6 @@ def options():
return Options()


def test_set_binary_with_firefox_binary(options):
binary = FirefoxBinary("foo")
options.binary = binary
assert options.binary_location == "foo"


def test_set_binary_with_path(options):
options.binary = "/foo"
assert options.binary_location == "/foo"


def test_get_binary(options):
options.binary = "/foo"
assert options.binary._start_cmd == "/foo"


def test_set_binary_location(options):
options.binary_location = "/foo"
assert options.binary_location == "/foo"
Expand Down