0

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

Muddyblack k
  • 314
  • 3
  • 16
  • should be resolutionCachePath: https://bonigarcia.dev/webdrivermanager/#advanced-configuration So WebDriverManager.chromedriver().resolutionCachePath("YourFolder").avoidOutputTree().setup(); ? – pcalkins Dec 14 '21 at 00:26
  • nop doesn't change it ^^ – Muddyblack k Dec 14 '21 at 01:00

1 Answers1

0

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();
Boni García
  • 4,618
  • 5
  • 28
  • 44
  • Yeah that is what I am using just like you posted in the Post I linked above. But it still saves the "resolution.properties" in the "~.cache/selenium" Folder – Muddyblack k Dec 14 '21 at 11:46