Katalon does not download latest geckodriver

I don’t know if Katalon tries to sniff out the correct version of geckodriver for the current Firefox installation (it should not - unlike Chrome, Firefox/Geckodriver support backward compatibility going back ~20 releases), but either way, Katalon is not downloading the latest version as far as I can tell.

Katalon 7.2.1, 7.2.4, 7.2.5

These pictures document this bug:

2 Likes

@Russ_Thomas
cc @duyluong @ThanhTo

this happens because the ‘source of trust’ is a gecko-release file on katalon studio git, instead of the latest mozilla info.
And as we can see, this source has been last updated looonoooooooooooooong time ago.

the quick fix will be to push an update for this file.
a permanent fix will be to use directly the mozilla’s repository as a source for releases info, imho. (altough not backward compatible with already released katalon versions)
… so both fixes may have to be applied.

Not sure why this solution has been applied, by using this file. The tags can be easily found by using a simple http request on the github api:

$ curl   -H "Accept: application/vnd.github.v3+json"   https://api.github.com/repos/mozilla/geckodriver/tags 
[
  {
    "name": "v0.27.0",
    "zipball_url": "https://api.github.com/repos/mozilla/geckodriver/zipball/v0.27.0",
    "tarball_url": "https://api.github.com/repos/mozilla/geckodriver/tarball/v0.27.0",
    "commit": {
      "sha": "917daaccc78bb8cac3ab324861ada48d68746d13",
      "url": "https://api.github.com/repos/mozilla/geckodriver/commits/917daaccc78bb8cac3ab324861ada48d68746d13"
    },
    "node_id": "MDM6UmVmMjUzNTQzOTM6cmVmcy90YWdzL3YwLjI3LjA="
  },
  {
    "name": "v0.26.0",
    "zipball_url": "https://api.github.com/repos/mozilla/geckodriver/zipball/v0.26.0",
    "tarball_url": "https://api.github.com/repos/mozilla/geckodriver/tarball/v0.26.0",
    "commit": {
      "sha": "79bc0ed40fae4454749530fef9f2a6c5c0e50b59",
      "url": "https://api.github.com/repos/mozilla/geckodriver/commits/79bc0ed40fae4454749530fef9f2a6c5c0e50b59"
    },
    "node_id": "MDM6UmVmMjUzNTQzOTM6cmVmcy90YWdzL3YwLjI2LjA="
  },

and even more, find the latest release:

$ curl   -H "Accept: application/vnd.github.v3+json"   https://api.github.com/repos/mozilla/geckodriver/releases/latest | jq .
{
  "url": "https://api.github.com/repos/mozilla/geckodriver/releases/29062505",
  "assets_url": "https://api.github.com/repos/mozilla/geckodriver/releases/29062505/assets",
  "upload_url": "https://uploads.github.com/repos/mozilla/geckodriver/releases/29062505/assets{?name,label}",
  "html_url": "https://github.com/mozilla/geckodriver/releases/tag/v0.27.0",
  "id": 29062505,
--- stripped response, is huge but have a lot of info needed -----

which gives directly the download link’s:

    "browser_download_url": "https://github.com/mozilla/geckodriver/releases/download/v0.27.0/geckodriver-v0.27.0-win64.zip"

2 Likes

Thanks @anon46315158 and @Russ_Thomas

Added an issue for the team to be aware:

1 Like

@Russ_Thomas, @anon46315158

We’ve updated the gecko_releases.json file up to v0.27, please check. The reason we keep this file in our repository because there was a performance issue when using https://api.github.com/repos/mozilla/geckodriver/releases with our libraries.

Thanks for your report.

1 Like

Confirmed! :nerd_face:

Closing.