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

Function get_edgedriver_url

scripts/pinned_browsers.py:224–231  ·  view source on GitHub ↗

Get EdgeDriver download URL if it exists.

(version, platform)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

requestMethod · 0.45

Tested by

no test coverage detected