3 Answers
3

Every version of Chrome will only work with a specific version of ChromeDriver. If there is a mismatch in those versions, you will get an error.

The best approach will depend on what version of Chrome you want to test against. For most, this will be the latest version of Chrome which requires the latest version of ChromeDriver.

If you have a requirement to test an older version, you will need an older version of ChromeDriver that matches that Chrome version.

In each case, you should be able to explicitly setup the selenium capabilities to target the browser version you want to test. The exact way to to do this depends on your programming language you are writing in.