jeudi 13 avril 2017

Can't run Chrome browser with custom profile selenium

I'm trying start selenium tests in chrome browser with my custom Profile which contains necessary cookies. I use Chrome 57 and chromedriver 2.29 My code is :

ChromeOptions options = new ChromeOptions();
options.addArguments("chrome.switches", "--disable-extensions");
options.addArguments("user-data-dir=/Users/tester/Desktop/ChromeProf/QAChromeProfile");
options.addArguments("--ignore-certificate-errors","disable-infobars","enable-automation","--window-size=375,667");
WebDriver driver = new ChromeDriver(options);

It works fine, but don't use my chrome profile. Help me, pls...)

Aucun commentaire:

Enregistrer un commentaire