From bf10c23661ac90a65598fc5bd53d3e5ccd3fa6df Mon Sep 17 00:00:00 2001 From: Andreas Tolfsen Date: Tue, 19 Jan 2016 18:16:01 +0000 Subject: [PATCH] py: make geckodriver append to non-existent log files --- py/selenium/webdriver/firefox/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/selenium/webdriver/firefox/service.py b/py/selenium/webdriver/firefox/service.py index 7e5989a29e5f9..bdf7f31da6ec9 100644 --- a/py/selenium/webdriver/firefox/service.py +++ b/py/selenium/webdriver/firefox/service.py @@ -44,7 +44,7 @@ def __init__( in the services' environment. """ if log_path: - log_file = open(log_path, "w") + log_file = open(log_path, "a+") service.Service.__init__( self, executable_path, port=port, log_file=log_file, env=env)