【发布时间】:2015-06-23 12:41:40
【问题描述】:
我尝试使用 32 版本和最后一个版本的 Firefox,但 Selenium 没有打开 Firefox 配置文件。它始终是临时配置文件。
ProfilesIni profile = new ProfilesIni();
FirefoxProfile myprofile = profile.getProfile("Selenium");
protected WebDriver driver = new FirefoxDriver(myprofile);
当我使用 Selenium 打开时,为了确定是哪个版本,我转到“about:support”-> 配置文件文件夹。路径始终是:| ......临时\anonymousXXXXXXXXXXXXXXXXXXwebdriver-profile'。
必须是:配置文件\oadeqq6x.Selenium
为什么 Selenium 不加载我的个人资料?
【问题讨论】:
-
你试过最新版本的 Selenium 和 Firefox 吗?如果是,请尝试将浏览器降级到版本 35
-
是的,我使用的是 Selenium 和 Firefox 的最新版本——结果相同。然后使用旧的 Firefox ->32、35 -> 相同的结果 :(
标签: java firefox selenium webdriver