I'm trying to tell the org.openqa.selenium.firefox.FirefoxDriver
of Selenium
to use an existing profile along with its cookies and proxy settings, so I'm doing:
FirefoxProfile firefoxProfile = new FirefoxProfile(new File("C:\Users\name\AppData\Local\Mozilla\Firefox\Profiles\u72231ej.other"));
WebDriver driver = new FirefoxDriver(firefoxProfile);
But it seems that a new profile is created no matter what.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…