Susovan Kumar Sahoo
Susovan Kumar Sahoo

Reputation: 1

Getting issue with creation of Firefox profile with Selenium 3.4/3.5/3.6

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

Answers (1)

smit9234
smit9234

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

Related Questions