Let's see what advantages the WebDriverManager offers:
- 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 the command-line interface or as a server).
Now that we know about the WebDriverManager library, we will look at what DataProviders are in TestNG.