aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-06-18 13:51:20 +0200
committerWojtek Kosior <koszko@koszko.org>2022-06-18 13:51:20 +0200
commit1f9ccef9b99a1adfa53cf1a22543f4bdbe2ac068 (patch)
tree2dcaaed5343b4aa8bb83eeaa447b7f958a40c933 /test
parentf33dbdee39953f145bb986a7488e65e55e25d49d (diff)
downloadbrowser-extension-1f9ccef9b99a1adfa53cf1a22543f4bdbe2ac068.tar.gz
browser-extension-1f9ccef9b99a1adfa53cf1a22543f4bdbe2ac068.zip
restore compatibility with IceCat 60
This commit also fixes the --driver option to configure script.
Diffstat (limited to 'test')
-rwxr-xr-xtest/haketilo_test/profiles.py12
1 files changed, 8 insertions, 4 deletions
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)