File tree 1 file changed +9
-1
lines changed
src/SeleniumLibrary/keywords/webdrivertools 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,15 @@ def create_chrome(
145
145
return self ._remote (remote_url , options = options )
146
146
if not executable_path :
147
147
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 )
149
157
return webdriver .Chrome (
150
158
options = options ,
151
159
service = service ,
You can’t perform that action at this time.
0 commit comments