Skip to content

Commit 2532076

Browse files
titusfortnerdiemol
andauthored
[py] let users pass service args to IE driver (#12272)
Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent 1ea0f18 commit 2532076

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/selenium/webdriver/ie/service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def __init__(
3232
executable_path: str = DEFAULT_EXECUTABLE_PATH,
3333
port: int = 0,
3434
host: typing.Optional[str] = None,
35+
service_args: typing.Optional[typing.List[str]] = None,
3536
log_level: typing.Optional[str] = None,
3637
log_output: SubprocessStdAlias = None,
3738
log_file: typing.Optional[str] = None,
@@ -48,7 +49,7 @@ def __init__(
4849
- log_file : Target of logging of service, may be "stdout", "stderr" or file path.
4950
Default is "stdout".
5051
"""
51-
self.service_args = []
52+
self.service_args = service_args or []
5253
if host:
5354
self.service_args.append(f"--host={host}")
5455
if log_level:

0 commit comments

Comments
 (0)