()
| 40 | |
| 41 | |
| 42 | def create_firefox_extension(): |
| 43 | ext_path = os.path.abspath(os.path.dirname(__file__) + sep + "firefox_extension") |
| 44 | # safe into assets folder |
| 45 | zip_file = use_assets() + sep + "extension.xpi" |
| 46 | |
| 47 | files = ["manifest.json", "content.js", "arrive.js"] |
| 48 | with zipfile.ZipFile(zip_file, "w", zipfile.ZIP_DEFLATED, False) as zipf: |
| 49 | for file in files: |
| 50 | zipf.write(ext_path + sep + file, file) |
| 51 | |
| 52 | return zip_file |
| 53 | |
| 54 | |
| 55 | def set_selenium_local_session( |
no test coverage detected