[Ubuntu, Windows] Update Edgedriver URL and maven version on Ubuntu (#12601)

* [Ubuntu, Windows] Update edgedriver URL

* [Ubuntu] Update maven version
This commit is contained in:
kishorekumar-anchala
2025-07-16 17:20:16 +05:30
committed by GitHub
parent 4423d3872f
commit bcdb306912
4 changed files with 6 additions and 6 deletions

View File

@@ -34,11 +34,11 @@ mkdir -p $EDGEDRIVER_DIR
edge_version=$(microsoft-edge --version | cut -d' ' -f 3) edge_version=$(microsoft-edge --version | cut -d' ' -f 3)
edge_version_major=$(echo $edge_version | cut -d'.' -f 1) edge_version_major=$(echo $edge_version | cut -d'.' -f 1)
edgedriver_version_url="https://msedgedriver.azureedge.net/LATEST_RELEASE_${edge_version_major}_LINUX" edgedriver_version_url="https://msedgedriver.microsoft.com/LATEST_RELEASE_${edge_version_major}_LINUX"
# Convert a resulting file to normal UTF-8 # Convert a resulting file to normal UTF-8
edgedriver_latest_version=$(curl -fsSL "$edgedriver_version_url" | iconv -f utf-16 -t utf-8 | tr -d '\r') edgedriver_latest_version=$(curl -fsSL "$edgedriver_version_url" | iconv -f utf-16 -t utf-8 | tr -d '\r')
edgedriver_url="https://msedgedriver.azureedge.net/${edgedriver_latest_version}/edgedriver_linux64.zip" edgedriver_url="https://msedgedriver.microsoft.com/${edgedriver_latest_version}/edgedriver_linux64.zip"
edgedriver_archive_path=$(download_with_retry "$edgedriver_url") edgedriver_archive_path=$(download_with_retry "$edgedriver_url")
unzip -qq "$edgedriver_archive_path" -d "$EDGEDRIVER_DIR" unzip -qq "$edgedriver_archive_path" -d "$EDGEDRIVER_DIR"

View File

@@ -70,7 +70,7 @@
"java": { "java": {
"default": "11", "default": "11",
"versions": [ "8", "11", "17", "21"], "versions": [ "8", "11", "17", "21"],
"maven": "3.9.10" "maven": "3.9.11"
}, },
"android": { "android": {
"cmdline-tools": "commandlinetools-linux-9477386_latest.zip", "cmdline-tools": "commandlinetools-linux-9477386_latest.zip",

View File

@@ -67,7 +67,7 @@
"java": { "java": {
"default": "17", "default": "17",
"versions": [ "8", "11", "17", "21"], "versions": [ "8", "11", "17", "21"],
"maven": "3.9.10" "maven": "3.9.11"
}, },
"android": { "android": {
"cmdline-tools": "commandlinetools-linux-11076708_latest.zip", "cmdline-tools": "commandlinetools-linux-11076708_latest.zip",

View File

@@ -15,12 +15,12 @@ if (-not (Test-Path -Path $edgeDriverPath)) {
New-Item -Path $edgeDriverPath -ItemType Directory -Force New-Item -Path $edgeDriverPath -ItemType Directory -Force
} }
$versionInfoUrl = "https://msedgedriver.azureedge.net/LATEST_RELEASE_$($edgeVersion.Major)_WINDOWS" $versionInfoUrl = "https://msedgedriver.microsoft.com/LATEST_RELEASE_$($edgeVersion.Major)_WINDOWS"
$versionInfoFile = Invoke-DownloadWithRetry -Url $versionInfoUrl -Path "$edgeDriverPath\versioninfo.txt" $versionInfoFile = Invoke-DownloadWithRetry -Url $versionInfoUrl -Path "$edgeDriverPath\versioninfo.txt"
$latestVersion = Get-Content -Path $versionInfoFile $latestVersion = Get-Content -Path $versionInfoFile
Write-Host "Download Microsoft Edge WebDriver..." Write-Host "Download Microsoft Edge WebDriver..."
$downloadUrl = "https://msedgedriver.azureedge.net/$latestVersion/edgedriver_win64.zip" $downloadUrl = "https://msedgedriver.microsoft.com/$latestVersion/edgedriver_win64.zip"
$archivePath = Invoke-DownloadWithRetry $downloadUrl $archivePath = Invoke-DownloadWithRetry $downloadUrl
Write-Host "Expand Microsoft Edge WebDriver archive..." Write-Host "Expand Microsoft Edge WebDriver archive..."