EdgeWebDriver icon indicating copy to clipboard operation
EdgeWebDriver copied to clipboard

How to determine the correct Microsoft Edge WebDriver version for a given Edge browser version

Open devfemibadmus opened this issue 1 year ago • 3 comments

I'm trying to match the correct version of the Microsoft Edge WebDriver with the installed version of the Microsoft Edge browser on my Debian system. The version numbers between the browser and the driver don't always align, making it confusing to determine which driver version to use. Sometimes the WebDriver has a version number that the browser doesn't have, or vice versa.

I tried installing a WebDriver with the same version number as the browser, but this doesn't seem to be the best solution. For instance, I currently have version 123.0.2420.53 of both the browser and the driver, and it works fine. However, I can't rely on this approach every time as the versions don't always match.

Here's my current process for installation:

  1. Visit https://msedgedriver.azureedge.net/ to see the list of available WebDriver versions.
  2. Run sudo apt list -a microsoft-edge-stable to find the latest browser release.
  3. Look for an exact version match, if available.

However, this method is cumbersome and unreliable, especially when the latest WebDriver and browser versions do not match, causing version errors. How can I accurately determine the correct WebDriver version for my installed Edge browser version? Is there a more systematic way to handle this?

Any guidance or resources would be appreciated!

devfemibadmus avatar Aug 01 '24 05:08 devfemibadmus

This script has been working for us: https://github.com/EFForg/privacybadger/blob/af7092e70fbd0c142a4954ae4e8200b687a4b42f/scripts/setup_travis.sh#L6-L24

ghostwords avatar Aug 01 '24 12:08 ghostwords

This script has been working for us: https://github.com/EFForg/privacybadger/blob/af7092e70fbd0c142a4954ae4e8200b687a4b42f/scripts/setup_travis.sh#L6-L24

Oh thanks similar to my method

devfemibadmus avatar Aug 01 '24 12:08 devfemibadmus

Selenium Manager does this job. It can be used as CLI tool, if you need to download msedgedriver.

bonigarcia avatar Aug 01 '24 19:08 bonigarcia