Reputation: 1
I tried with the below code. I am unable to import the FirefoxProfile
package to my IDE.
ProfilesIni allProfiles = new ProfilesIni();
FirefoxProfile myProfile = allProfiles.getProfile("SeleniumTest");
WebDriver driver = new FirefoxDriver(myProfile);
Upvotes: 0
Views: 23
Reputation: 361
Try this
ProfilesIni allProfiles = new ProfilesIni();
FirefoxProfile myProfile = allProfiles.getProfile("SeleniumTest");
FirefoxOptions options = new FirefoxOptions();
options.setProfile(myProfile);
WebDriver driver = new FirefoxDriver(options);
Upvotes: 1