Skip to content

Commit f3b5d5e

Browse files
[py] Correct deprecation message in IE handling code
1 parent f014907 commit f3b5d5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/selenium/webdriver/ie/webdriver.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, executable_path='IEDriverServer.exe', capabilities=None,
6060
warnings.warn('executable_path has been deprecated, please pass in a Service object',
6161
DeprecationWarning, stacklevel=2)
6262
if capabilities:
63-
warnings.warn('capabilities has been deprecated, please pass in a Service object',
63+
warnings.warn('capabilities has been deprecated, please pass in a Options object',
6464
DeprecationWarning, stacklevel=2)
6565
if port != DEFAULT_PORT:
6666
warnings.warn('port has been deprecated, please pass in a Service object',
@@ -78,7 +78,7 @@ def __init__(self, executable_path='IEDriverServer.exe', capabilities=None,
7878
warnings.warn('service_log_path has been deprecated, please pass in a Service object',
7979
DeprecationWarning, stacklevel=2)
8080
if desired_capabilities:
81-
warnings.warn('desired_capabilities has been deprecated, please pass in a Service object',
81+
warnings.warn('desired_capabilities has been deprecated, please pass in an Options object',
8282
DeprecationWarning, stacklevel=2)
8383
if keep_alive != DEFAULT_KEEP_ALIVE:
8484
warnings.warn('keep_alive has been deprecated, please pass in a Service object',

0 commit comments

Comments
 (0)