Hi all,
I know that this is not the place to ask this questions, so, first of all, I am sorry, but on Selenium User group I had not a reply.
Is a simple issue I have, but I have been working all day on this with no solution to select a custom profile form firefox at the starting of my tests.
I tried it on different vms and firefox versions (From 12 to 20) and also with different webdriver versions, from 2.27 to 2.32
My code is the following:
public WebDriver setFirefoxDriver() {
ProfilesIni allProfiles = new ProfilesIni();
FirefoxProfile profile = allProfiles.getProfile("someName");
FirefoxDriver driver = new FirefoxDriver(profile);
return driver;
}
Where someName is setted in a xml file (testng suite) and loaded in my framework, I debugged it and is perfectly setted, the profile is created on firefox but Webdriver is always opening an annonymous profile.
Can you see if I am missing something?
Regards,