Skip to content

Commit eabebb2

Browse files
committed
apply log_method inspection for other drivers
1 parent fac5596 commit eabebb2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/SeleniumLibrary/keywords/webdrivertools/webdrivertools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ def create_edge(
302302
return self._remote(remote_url, options=options)
303303
if not executable_path:
304304
executable_path = self._get_executable_path(webdriver.edge.service.Service)
305-
service = EdgeService(executable_path=executable_path, log_path=service_log_path)
305+
log_method = self._get_log_method(EdgeService, service_log_path)
306+
service = EdgeService(executable_path=executable_path, **log_method)
306307
return webdriver.Edge(
307308
options=options,
308309
service=service,
@@ -323,7 +324,8 @@ def create_safari(
323324
return self._remote(remote_url, options=options)
324325
if not executable_path:
325326
executable_path = self._get_executable_path(webdriver.Safari)
326-
service = SafariService(executable_path=executable_path, log_path=service_log_path)
327+
log_method = self._get_log_method(SafariService, service_log_path)
328+
service = SafariService(executable_path=executable_path, **log_method)
327329
return webdriver.Safari(options=options, service=service)
328330

329331
def _remote(self, remote_url, options):

0 commit comments

Comments
 (0)