From 1f9ccef9b99a1adfa53cf1a22543f4bdbe2ac068 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 18 Jun 2022 13:51:20 +0200 Subject: restore compatibility with IceCat 60 This commit also fixes the --driver option to configure script. --- test/haketilo_test/profiles.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/haketilo_test/profiles.py b/test/haketilo_test/profiles.py index e1fc368..0487064 100755 --- a/test/haketilo_test/profiles.py +++ b/test/haketilo_test/profiles.py @@ -81,7 +81,8 @@ def set_webextension_uuid(profile, extension_id, uuid=default_extension_uuid): json.dumps({extension_id: uuid})) def firefox_safe_mode(proxy_port, proxy_host=default_proxy_host, - firefox_binary=conf_settings['BROWSER_BINARY']): + firefox_binary=conf_settings['BROWSER_BINARY'], + geckodriver_binary=conf_settings['DRIVER']): """ Initialize a Firefox instance controlled by selenium. The instance is started in safe mode. @@ -94,11 +95,13 @@ def firefox_safe_mode(proxy_port, proxy_host=default_proxy_host, options.add_argument('--safe-mode') return HaketiloFirefox(options=options, firefox_profile=profile, - firefox_binary=firefox_binary) + firefox_binary=firefox_binary, + executable_path=geckodriver_binary) def firefox_with_profile(proxy_port, proxy_host=default_proxy_host, firefox_binary=conf_settings['BROWSER_BINARY'], - profile_dir=conf_settings['CLEAN_PROFILE']): + profile_dir=conf_settings['CLEAN_PROFILE'], + geckodriver_binary=conf_settings['DRIVER']): """ Initialize a Firefox instance controlled by selenium. The instance is started using an empty profile (either the default one or the one passed to @@ -111,4 +114,5 @@ def firefox_with_profile(proxy_port, proxy_host=default_proxy_host, set_webextension_uuid(profile, default_haketilo_id) return HaketiloFirefox(firefox_profile=profile, - firefox_binary=firefox_binary) + firefox_binary=firefox_binary, + executable_path=geckodriver_binary) -- cgit v1.2.3