CentOS Selenium - Preparing firefox profile

I'm trying use to selenium with firefox on CentOS from command line like this:

java -jar selenium-server-standalone-2.19.0.jar -interactive

Then, I type: cmd=getNewBrowserSession&1=*firefox&2=http://www.google.com

Then it stucks on "Preparing Firefox profile..." part and crashes:

13:59:13.105 INFO - Preparing Firefox profile... 13:59:33.366 ERROR - Failed to start new browser session, shutdown browser and clear all session data

Please help me solve this, I'm quite new to the unix world. Thanks!

Answers


you could define a specific firefox profile (you have to create it first):

java -jar selenium-server.jar -log SeleniumServer.log -firefoxProfileTemplate "PROFILEPATH" -interactive

Are you pointing directly to the firefox executable, or are you pointing to an alias?

By default selenium should be pointing to your selenium binary, what is in /usr/bin is usually a script that interacts with the firefox executable.


And for those wondering, if you're at the command line, you can create a profile like this:

firefox -CreateProfile profilename

Need Your Help

XSD with strict combination

xml xsd xsd-validation

i have a little problem with an exisiting XSD and an additional rule I want to implement. Here's a part of my original XSD:

Subclassing std::thread and forwarding packed/variadic template parameters

c++ templates subclass variadic stdthread

In my code I would like to have all threads subclass from a type that in turn subclasses from std::thread. The reasons, which I'm sure are common: