Muddyblack k
Muddyblack k

Reputation: 252

Java Webdrivermanager change properties folder

I use Webdrivermanager to update to the latest Webdriver version. In Python I was able to modify the module myself. But I have not that much experience in Java yet. I use this to change the Driver download folder: Have WebDriverManager Download to Specific Directory. But the resolution.properties file is still saving under the ".cache" folder. How can i change its location too and do I even need the file?

I hop you can help me out.

Best Regards

Christian

Upvotes: 0

Views: 1075

Answers (1)

Boni García
Boni García

Reputation: 4858

Invoke WebDriverManager as follows:

WebDriverManager.chromedriver().cachePath("/your/path").setup();

If in addition you want to avoid storing the drivers in a tree folder structure, use the following:

WebDriverManager.chromedriver().cachePath("/your/path").avoidOutputTree().setup();

Upvotes: 0

Related Questions