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

Function mac_edge_browser_content

scripts/pinned_browsers.py:283–305  ·  view source on GitHub ↗

Generate Bazel content for Mac Edge browser.

(browser_url, browser_hash, browser_version)

Source from the content-addressed store, hash-verified

281
282
283def mac_edge_browser_content(browser_url, browser_hash, browser_version):
284 """Generate Bazel content for Mac Edge browser."""
285 return f"""
286 pkg_archive(
287 name = "mac_edge",
288 url = "{browser_url}",
289 sha256 = "{browser_hash.lower()}",
290 move = {{
291 "MicrosoftEdge-{browser_version}.pkg/Payload/Microsoft Edge.app": "Edge.app",
292 }},
293 build_file_content = \"\"\"
294load("@aspect_rules_js//js:defs.bzl", "js_library")
295package(default_visibility = ["//visibility:public"])
296
297exports_files(["Edge.app"])
298
299js_library(
300 name = "edge-js",
301 data = glob(["Edge.app/**/*"], allow_empty = True),
302)
303\"\"\",
304 )
305"""
306
307
308def linux_edge_browser_content(browser_url, browser_hash):

Callers 1

edge_and_edgedriverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected