【发布时间】:2011-12-07 23:12:07
【问题描述】:
我正试图告诉Selenium 的org.openqa.selenium.firefox.FirefoxDriver 使用现有配置文件及其cookie 和代理设置,所以我这样做了:
FirefoxProfile firefoxProfile = new FirefoxProfile(new File("C:\\Users\\name\\AppData\\Local\\Mozilla\\Firefox\\Profiles\\u72231ej.other"));
WebDriver driver = new FirefoxDriver(firefoxProfile);
但似乎无论如何都会创建一个新的配置文件。
【问题讨论】: