We'd like to launch the Firefox browser with profile initialization . but it is not opening and failing with below error message.
"java.lang.NoClassDefFoundError:org/openqa/selenium/remote/JsonToBeanConverter" at org.openqa.selenium.firefox.Preferences.readDefaultPreferences(Preferences.java:95)
**My current software version details**
Selenium 3.14
Firefox browser 66
Gecko driver version V 0.24
System.setProperty("webdriver.gecko.driver", "C:\\geckodriver.exe");
ProfilesIni prof = new ProfilesIni();
FirefoxProfile profile = prof.getProfile("Auto");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability(FirefoxDriver.PROFILE, profile);
return new FirefoxDriver(capabilities);
I tried to launch the Firefox browser with above configuration
As per the above code we have created a profile manually and trying to launch the browser with created profile . We have added add block plus plugin in the profile. because Random popup is appearing in our application . so we want to block it by adding the random popup filename is the add block plus filter.
**Actual Result :**Browser is not launching
**Expected Result :**Browser should launch