I tried loading the chrome profile with selenium. However, whenever I upload the profile, I get an error:
invalid argument: user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use - user-data-dir.
String chromeProfile = "C:\\Users\\ad\\AppData\\Local\\Google\\Chrome\\User Data"; ChromeDriverService chSvc = new ChromeDriverService.Builder() .usingDriverExecutable(new File("C:\\Driver\\chromedriver.exe")).usingAnyFreePort().build(); ChromeOptions chOption = new ChromeOptions(); chOption.addArguments("--user-data-dir=" + chromeProfile); chOption.addArguments("--profile-directory=Profile 33"); chOption.addArguments("--start-maximized"); ChromeDriver driver = new ChromeDriver(chSvc, chOption); driver.get("https://google.com");