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

Popular Posts

Linux commands 1 : Commonly used FILE AND DIRECTORY COMMANDS for daily use and interview

Most common used Docker Commands for SDETs

Running tests from maven command line: Different options