Skip to content

Commit

Permalink
[py] remove deprecated quiet parameter from Safari service constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 1, 2023
1 parent 64aea82 commit b1aae60
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions py/selenium/webdriver/safari/service.py
Expand Up @@ -16,7 +16,6 @@
# under the License.

import typing
import warnings

from selenium.webdriver.common import service

Expand All @@ -27,7 +26,6 @@ class Service(service.Service):
:param executable_path: install path of the safaridriver executable, defaults to `/usr/bin/safaridriver`.
:param port: Port for the service to run on, defaults to 0 where the operating system will decide.
:param quiet: (Deprecated) Suppress driver stdout & stderr, redirects to os.devnull if enabled.
:param service_args: (Optional) List of args to be passed to the subprocess when launching the executable.
:param env: (Optional) Mapping of environment variables for the new process, defaults to `os.environ`.
"""
Expand All @@ -36,19 +34,12 @@ def __init__(
self,
executable_path: str = None,
port: int = 0,
quiet: bool = None,
service_args: typing.Optional[typing.List[str]] = None,
env: typing.Optional[typing.Mapping[str, str]] = None,
reuse_service=False,
**kwargs,
) -> None:
self.service_args = service_args or []
if quiet is not None:
warnings.warn(
"quiet is no longer needed to supress output",
DeprecationWarning,
stacklevel=2,
)

self.reuse_service = reuse_service
super().__init__(
Expand Down

0 comments on commit b1aae60

Please sign in to comment.