Revision ee0a4a93
Added by koszko over 1 year ago
test/haketilo_test/profiles.py | ||
---|---|---|
80 | 80 |
profile.set_preference('extensions.webextensions.uuids', |
81 | 81 |
json.dumps({extension_id: uuid})) |
82 | 82 |
|
83 |
def firefox_safe_mode(firefox_binary=conf_settings['BROWSER_BINARY'], |
|
84 |
proxy_host=default_proxy_host, |
|
85 |
proxy_port=default_proxy_port): |
|
83 |
def firefox_safe_mode(proxy_port, proxy_host=default_proxy_host, |
|
84 |
firefox_binary=conf_settings['BROWSER_BINARY']): |
|
86 | 85 |
""" |
87 | 86 |
Initialize a Firefox instance controlled by selenium. The instance is |
88 | 87 |
started in safe mode. |
... | ... | |
97 | 96 |
return HaketiloFirefox(options=options, firefox_profile=profile, |
98 | 97 |
firefox_binary=firefox_binary) |
99 | 98 |
|
100 |
def firefox_with_profile(firefox_binary=conf_settings['BROWSER_BINARY'], |
|
101 |
profile_dir=conf_settings['CLEAN_PROFILE'], |
|
102 |
proxy_host=default_proxy_host, |
|
103 |
proxy_port=default_proxy_port): |
|
99 |
def firefox_with_profile(proxy_port, proxy_host=default_proxy_host, |
|
100 |
firefox_binary=conf_settings['BROWSER_BINARY'], |
|
101 |
profile_dir=conf_settings['CLEAN_PROFILE']): |
|
104 | 102 |
""" |
105 | 103 |
Initialize a Firefox instance controlled by selenium. The instance is |
106 | 104 |
started using an empty profile (either the default one or the one passed to |
Also available in: Unified diff
automatically pick up a free port to run the HTTP proxy on
It is now possible to run multiple
make test
commands in parallel (e.g. testing abrowser and librewolf simultaneously after runningconfigure
for each of them in 2 different directories).