Commit ca81fe82 authored by Gabriel Monnerat's avatar Gabriel Monnerat

test: Allow clipboard on Zelenium tests

In Support request test we trigger clipboard API to copy RSS Link
parent ee566452
......@@ -200,6 +200,13 @@ class FunctionalTestRunner:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1338144
options = webdriver.FirefoxOptions()
options.set_preference('dom.serviceWorkers.enabled', True)
# Allow Clipboard
# http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
options.set_preference("capability.policy.policynames", "allowclipboard");
options.set_preference("capability.policy.allowclipboard.sites",
self._getTestBaseURL());
options.set_preference("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
options.set_preference("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
kw = dict(capabilities=capabilities, options=options)
firefox_bin = os.environ.get('firefox_bin')
if firefox_bin:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment