specify the firefox binary

This commit is contained in:
Greg Gauthier 2020-10-10 19:14:35 +01:00
parent fc4cd7107c
commit 96287094a9

View File

@ -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():