How to handle downloading of different browser drivers without manual intervention?
Using WebDriverManager, we can automatically download the driver’s binary files (.exe files) for Web Automation
Traditionally the binaries are referred as
System.setProperty(""""webdriver.chrome.driver"""", """"D:\\test\\chromedriver.exe"""" );
With WebDriverManager, we can eliminate the downloading of the binaries everytime a new version is released.
WebDriverManager.chromedriver().setup();
POM:
<dependency>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>3.0.0</version>
<scope>test</scope>
</dependency>""
Comments
Post a Comment