selenium: [🐛 Bug]: Selenium Manager unable to lookup Edge - Error parsing JSON

What happened?

Running Selenium Manager Windows 0.4.27 command line to pull any Edge version shows:

C:\AFT>selenium-manager-windows.exe --version
selenium-manager 0.4.27

C:\AFT>selenium-manager-windows.exe --browser edge --browser-version stable --trace --force-browser-download
[2024-12-04T09:28:52.541Z TRACE] Reading metadata from C:\Users\aftadmin\.cache\selenium\se-metadata.json
[2024-12-04T09:28:52.544Z TRACE] Metadata file does not exist. Creating a new one
[2024-12-04T09:28:52.545Z DEBUG] Sending stats to Plausible: Props { browser: "edge", browser_version: "stable", os: "windows", arch: "amd64", lang: "", selenium_version: "4.27" }
[2024-12-04T09:28:52.545Z TRACE] Writing metadata to C:\Users\aftadmin\.cache\selenium\se-metadata.json
[2024-12-04T09:28:52.546Z TRACE] Checking msedgedriver in PATH
[2024-12-04T09:28:52.573Z DEBUG] msedgedriver not found in PATH
[2024-12-04T09:28:52.574Z TRACE] Reading metadata from C:\Users\aftadmin\.cache\selenium\se-metadata.json
[2024-12-04T09:28:52.575Z DEBUG] Checking edge releases on https://edgeupdates.microsoft.com/api/products/
[2024-12-04T09:28:52.623Z ERROR] Error parsing JSON from URL https://edgeupdates.microsoft.com/api/products/ missing field `ArtifactName` at line 1 column 517

When I look at https://edgeupdates.microsoft.com/api/products/ the json has an “artifactName” (lower case a at start), and only for the browser, not the webdriver - I’m not sure of the format SM expects? image

How can we reproduce the issue?

See above.

Relevant log output

See above.

Operating System

Windows 10

Selenium version

selenium-manager 0.4.27

What are the browser(s) and version(s) where you see this issue?

Edge all versions

What are the browser driver(s) and version(s) where you see this issue?

Edge all versions

Are you using Selenium Grid?

n/a

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (6 by maintainers)

Commits related to this issue

Most upvoted comments

FYI, the older field names are now appearing in the API response, and downloading Edge seems to be working as expected. However, it’s unclear when this change was implemented by the Microsoft team. Users do not need to upgrade the Selenium version immediately.

Around the second week of January.

I will try to reproduce and work on fixing this.

It will be shipped in the next Selenium release (4.28). But if you need it now, you can download the new Selenium Manager binary from here: https://github.com/SeleniumHQ/selenium/actions/runs/12316815660

Thanks @bonigarcia

I think it’ll impact all versions of Selenium Manager if it’s an unexpected change in the format of the data returned by https://edgeupdates.microsoft.com/api/products/ (ArtifactName vs artifactName)