MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / firefox

Function firefox

scripts/pinned_browsers.py:442–454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

440
441
442def firefox():
443 firefox_versions = json.loads(firefox_version_data())
444
445 latest_firefox = firefox_versions["LATEST_FIREFOX_VERSION"]
446 sha_linux = calculate_hash(firefox_linux(latest_firefox))
447 sha_mac = calculate_hash(firefox_mac(latest_firefox))
448 content = print_firefox(latest_firefox, "", sha_linux, sha_mac)
449
450 beta_firefox = firefox_versions["LATEST_FIREFOX_RELEASED_DEVEL_VERSION"]
451 if latest_firefox != beta_firefox:
452 sha_linux = calculate_hash(firefox_linux(beta_firefox))
453 sha_mac = calculate_hash(firefox_mac(beta_firefox))
454 return content + print_firefox(beta_firefox, "beta_", sha_linux, sha_mac), latest_firefox, beta_firefox
455
456
457def firefox_version_data():

Callers 1

pinned_browsers.pyFile · 0.85

Calls 5

firefox_version_dataFunction · 0.85
calculate_hashFunction · 0.85
firefox_linuxFunction · 0.85
firefox_macFunction · 0.85
print_firefoxFunction · 0.85

Tested by

no test coverage detected