To create Firefox Profile

91 views
Skip to first unread message

SrinivasGS

unread,
Dec 9, 2011, 3:53:52 AM12/9/11
to Selenium Users
Hi,

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

Simon Stewart

unread,
Dec 9, 2011, 8:29:33 AM12/9/11
to seleniu...@googlegroups.com
It looks like you're missing the apache httpclient (and/or its dependencies) from your classpath.

Simon


--
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.


Reply all
Reply to author
Forward
0 new messages