Edit download path

This commit is contained in:
nadya16 2018-05-03 13:32:18 +04:00
parent 18ff938371
commit e82bdb34d5

View File

@ -16,7 +16,7 @@ public class ChromeContext extends Context {
ChromeOptions options = new ChromeOptions(); ChromeOptions options = new ChromeOptions();
Map<String, Object> prefs = new HashMap<String, Object>(); Map<String, Object> prefs = new HashMap<String, Object>();
tmpPath = "C:/Users/Надежда/Downloads/"; tmpPath = System.getProperty("user.dir") + "/src/main/resources/downloads/";
prefs.put("download.default_directory", tmpPath); prefs.put("download.default_directory", tmpPath);