Revision 1f9ccef9
Added by koszko about 1 year ago
test/haketilo_test/profiles.py | ||
---|---|---|
81 | 81 |
json.dumps({extension_id: uuid})) |
82 | 82 |
|
83 | 83 |
def firefox_safe_mode(proxy_port, proxy_host=default_proxy_host, |
84 |
firefox_binary=conf_settings['BROWSER_BINARY']): |
|
84 |
firefox_binary=conf_settings['BROWSER_BINARY'], |
|
85 |
geckodriver_binary=conf_settings['DRIVER']): |
|
85 | 86 |
""" |
86 | 87 |
Initialize a Firefox instance controlled by selenium. The instance is |
87 | 88 |
started in safe mode. |
... | ... | |
94 | 95 |
options.add_argument('--safe-mode') |
95 | 96 |
|
96 | 97 |
return HaketiloFirefox(options=options, firefox_profile=profile, |
97 |
firefox_binary=firefox_binary) |
|
98 |
firefox_binary=firefox_binary, |
|
99 |
executable_path=geckodriver_binary) |
|
98 | 100 |
|
99 | 101 |
def firefox_with_profile(proxy_port, proxy_host=default_proxy_host, |
100 | 102 |
firefox_binary=conf_settings['BROWSER_BINARY'], |
101 |
profile_dir=conf_settings['CLEAN_PROFILE']): |
|
103 |
profile_dir=conf_settings['CLEAN_PROFILE'], |
|
104 |
geckodriver_binary=conf_settings['DRIVER']): |
|
102 | 105 |
""" |
103 | 106 |
Initialize a Firefox instance controlled by selenium. The instance is |
104 | 107 |
started using an empty profile (either the default one or the one passed to |
... | ... | |
111 | 114 |
set_webextension_uuid(profile, default_haketilo_id) |
112 | 115 |
|
113 | 116 |
return HaketiloFirefox(firefox_profile=profile, |
114 |
firefox_binary=firefox_binary) |
|
117 |
firefox_binary=firefox_binary, |
|
118 |
executable_path=geckodriver_binary) |
Also available in: Unified diff
restore compatibility with IceCat 60
This commit also fixes the --driver option to configure script.