Skip to content

Commit dcff890

Browse files
committed
Resolve issue with service log_path now log_output.
1 parent 7c9d557 commit dcff890

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/SeleniumLibrary/keywords/webdrivertools/webdrivertools.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,15 @@ def create_chrome(
145145
return self._remote(remote_url, options=options)
146146
if not executable_path:
147147
executable_path = self._get_executable_path(webdriver.chrome.service.Service)
148-
service = ChromeService(executable_path=executable_path, log_path=service_log_path)
148+
# -- temporary fix to transition selenium to v4.13 from v4.11 and prior
149+
from inspect import signature
150+
sig = signature(ChromeService)
151+
if 'log_output' in str(sig):
152+
log_method = {'log_output': service_log_path}
153+
else:
154+
log_method = {'log_path': service_log_path}
155+
# --
156+
service = ChromeService(executable_path=executable_path, **log_method)
149157
return webdriver.Chrome(
150158
options=options,
151159
service=service,

0 commit comments

Comments
 (0)