WebDriverManager: How to manage browser drivers easily?

  1. When IT upgrades the browser version
  2. For some reason the individual developer machine does not upgrade but CSLT Test automation team has upgraded the driver version.
  • It checks the browser version installed on your machine (for example, Chrome, Firefox, Internet Explorer, and so on).
  • It checks the version of the driver (for example, chromedriver, geckodriver). If the version is not known, it uses the latest version of the driver.
  • It downloads the WebDriver binary executable if it is not present in the WebDriverManager cache in the Maven repository (~/.m2/repository/webdriver by default).
  • It exports the appropriate WebDriver Java environment variables required by Selenium (not done when WebDriverManager is used from the command-line interface or as a server).

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store