this code does not redirect me to Instagram. when i debug it i see the program just stuck on the "new chrome driver" row. but when i delete the row in the middle (add arguments) it doesnt stuck and does open instagram! didnt find any explanation for this. can someone help?
System.setProperty("webdriver.chrome.driver", "C:\\Users\\gum\\Desktop\\intellijprojects\\Instagram\\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("user-data-dir=C:/Users/gum/AppData/Local/Google/Chrome/User Data");
ChromeDriver driver = new ChromeDriver(options);
driver.get("http://ift.tt/1PawXGj");
Aucun commentaire:
Enregistrer un commentaire