File tree Expand file tree Collapse file tree
src/SeleniumLibrary/keywords/webdrivertools Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments