How to create Firefox profile using Webdriver 2.14?
The following code was used to create profile using Webdriver 2.2,
ProfilesIni ffProfiles = new ProfilesIni();
try
{
firefoxprofile = ffProfiles.getProfile("WebDriver");
}
catch (Exception e)
{
e.printStackTrace();
firefoxprofile = ffProfiles.getProfile("default");
}
driver = new FirefoxDriver(firefoxprofile);
This was working fine, but when the Webdriver Jar was updated to 2.14,
it started throwing the following error,
FAILED CONFIGURATION: @BeforeSuite start
java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/
SchemeSocketFactory
at
org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:
210)
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:
78)
at
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:
147)
at
org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:
75)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:
126)
at
org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:
81)
at
com.satmetrix.xperience.utility.ApplicationUtility.selectBrowser(ApplicationUtility.java:
210)
Can someone help me in resolving this issue?
Thanks
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.