Home > Software engineering >  WebDriverManager Java download matching version on device
WebDriverManager Java download matching version on device

Time:09-30

I am using WebDriverManager to install the drivers. However, the setup method seems to install the latest version and not the matching version on my device.

Although they differ, it seems to still work. Is it needed to specify the version to be more exact (not sure on this)?

If I wanted to specify the version, how can this be achieved?

WebDriverManager.chromedriver().setup();

This installs the latest chrome driver (say 105.1.3 but my device might have 105.1.1 as an example).

CodePudding user response:

The version of Driver that you want Webdrivermanager to setupcan be configured like below, i have set to 102.0 which is what my device has installed not the latest 105 You can extract the Installed Chrome Browser version, pass it in driverVersion below to use the same

WebDriverManager.chromedriver().driverVersion("102.0").setup();

CodePudding user response:

The solution is setup() will match the matching browser version (I found it in the docs after here in 3.1.1

  • Related