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

Function get_edgedriver_url

scripts/pinned_browsers.py:229–236  ·  view source on GitHub ↗

Get EdgeDriver download URL if it exists.

(version, platform)

Source from the content-addressed store, hash-verified

227
228
229def get_edgedriver_url(version, platform):
230 """Get EdgeDriver download URL if it exists."""
231 if platform == "linux":
232 url = f"https://msedgedriver.microsoft.com/{version}/edgedriver_linux64.zip"
233 else:
234 url = f"https://msedgedriver.microsoft.com/{version}/edgedriver_mac64_m1.zip"
235 r = http.request("HEAD", url)
236 return url if r.status == 200 else None
237
238
239def verify_url(url):

Callers 1

edge_platform_matchFunction · 0.85

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected