Reputation: 252
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
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