MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / get_edgedriver_version

Function get_edgedriver_version

scripts/pinned_browsers.py:213–222  ·  view source on GitHub ↗

Get the latest EdgeDriver version for a given major version and platform.

(major, platform)

Source from the content-addressed store, hash-verified

211
212
213def get_edgedriver_version(major, platform):
214 """Get the latest EdgeDriver version for a given major version and platform."""
215 platform_suffix = "LINUX" if platform == "linux" else "MACOS"
216 r = http.request(
217 "GET",
218 f"https://msedgedriver.microsoft.com/LATEST_RELEASE_{major}_{platform_suffix}",
219 )
220 if r.status != 200:
221 return None
222 return r.data.decode("utf-16").strip()
223
224
225def get_edgedriver_url(version, platform):

Callers 1

Calls 2

decodeMethod · 0.65
requestMethod · 0.45

Tested by

no test coverage detected