From 96287094a9bfcc384a9090d43fc2dee8de18025d Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sat, 10 Oct 2020 19:14:35 +0100 Subject: [PATCH] specify the firefox binary --- browserdriver/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/browserdriver/__init__.py b/browserdriver/__init__.py index fc91da7..ca9832e 100755 --- a/browserdriver/__init__.py +++ b/browserdriver/__init__.py @@ -32,7 +32,10 @@ def firefox(): options.accept_insecure_certs = True options.headless = True gecko_driver = GeckoDriverManager().install() - return webdriver.Firefox(executable_path=gecko_driver, firefox_options=options) + return webdriver.Firefox( + executable_path=gecko_driver, + firefox_options=options, + firefox_binary="/usr/local/bin/firefox") def edge():