Skip to content

Commit

Permalink
Remove deprecation warning (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsfehler authored Feb 13, 2024
1 parent abbfff1 commit a6eebd6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
14 changes: 0 additions & 14 deletions splinter/driver/webdriver/chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,6 @@ def __init__(
config: Optional[Config] = None,
**kwargs,
):
if "executable_path" in kwargs:
warnings.warn(
(
"Webdriver's executable_path argument has been deprecated."
"Please pass in a selenium Service object instead."
),
DeprecationWarning,
stacklevel=2,
)
if service is None:
service = Service(executable_path=kwargs["executable_path"])
else:
service.executable_path = kwargs["executable_path"]

if True in [fullscreen, incognito, headless] or user_agent:
warnings.warn(
(
Expand Down
14 changes: 0 additions & 14 deletions splinter/driver/webdriver/edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,6 @@ def __init__(
config: Optional[Config] = None,
**kwargs,
):
if "executable_path" in kwargs:
warnings.warn(
(
"Webdriver's executable_path argument has been deprecated."
"Please pass in a selenium Service object instead."
),
DeprecationWarning,
stacklevel=2,
)
if service is None:
service = Service(executable_path=kwargs["executable_path"])
else:
service.executable_path = kwargs["executable_path"]

if True in [fullscreen, incognito, headless] or user_agent:
warnings.warn(
(
Expand Down
14 changes: 0 additions & 14 deletions splinter/driver/webdriver/firefox.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,6 @@ def __init__(
config: Optional[Config] = None,
**kwargs,
):
if "executable_path" in kwargs:
warnings.warn(
(
"Webdriver's executable_path argument has been deprecated."
"Please pass in a selenium Service object instead."
),
DeprecationWarning,
stacklevel=2,
)
if service is None:
service = Service(executable_path=kwargs["executable_path"])
else:
service.executable_path = kwargs["executable_path"]

if True in [fullscreen, incognito, headless] or user_agent:
warnings.warn(
(
Expand Down

0 comments on commit a6eebd6

Please sign in to comment.