- WebDriverManager is an open-source Java library
- It carries out the management (i.e., download, setup, and maintenance) of the drivers required by Selenium WebDriver(e.g., chromedriver, geckodriver, msedgedriver, etc.) in a fully automated manner.
- The primary use of WebDriverManager is the automation of driver.
- With this we can get rid of System property to fetch the driver placed in physical driver or from the project path.
This is how we set the path for chrome driver once the driver is downloaded and placed in system hard drive .
Now, using DriverMnager we can get rid of physical drive path, that is replace the above line of code with
This requires the following dependency to be added in pom.xml file.