Get EdgeDriver download URL if it exists.
(version, platform)
| 222 | |
| 223 | |
| 224 | def 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 | |
| 234 | def verify_url(url): |
no test coverage detected