Skip to content

Commit 61800fb

Browse files
Deprecate the use of browser profile when instantiating a session
1 parent abe1f45 commit 61800fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ def __init__(self, command_executor='http://127.0.0.1:4444/wd/hub',
9090
self.capabilities = {}
9191
self.error_handler = ErrorHandler()
9292
self.start_client()
93+
if browser_profile is not None:
94+
warnings.warn("Please use FirefoxOptions to set browser profile",
95+
DeprecationWarning)
9396
self.start_session(desired_capabilities, browser_profile)
9497
self._switch_to = SwitchTo(self)
9598
self._mobile = Mobile(self)

0 commit comments

Comments
 (0)