Take the 2-minute tour ×

I am attempting to launch a custom firefox profile on a remote machine, launching from Windows XP to Mac OS X. The browser launchs using the custom profile but opens the set up url and the remote runner on the same URL path (essentially the test doesn't run).


    selenium = new DefaultSelenium(setup.host, setup.port, setup.browser, setup.url);

Pulls this:

    static String host    = "";
    static int port       = 4444; 
    static String browser = "*custom"+" "+"//Applications//Firefox.app//Contents//MacOS/firefox-bin"+" "+"-P"+" "+"Selenium";
    static String url     = "http://test.Example.com"; 

Opens the browser and is using correct profile but does not load the URL correctly.

Any help will be greatly appreciated!

share|improve this question
add comment

1 Answer

To launch firefox using customProfile, you don't need to open it as custom browser. You should be setting the firefoxprofileTemplate while starting the server.

If you are starting the jar from the command prompt using java -jar selenium-server command then you should be using the following command:

java -jar selenium-server -firefoxProfileTemplate <path to firefox template>

If you are starting the server using code, then you should use the below code:

SeleniumServer selServer;
RemoteControlConfiguration rc;
rc.setFirefoxProfileTemplate(File which refers to FirefoxProfileTemplate)
selServer=new SeleniumServer(false,rc);

For both, you should create the firefox profile first using firefox -P command.

share|improve this answer
When I do that I get a an invalid path error, although it uses the same path as the *custom. Can you use the *firefox option and then a custom profile path? –  Armando Jul 6 '11 at 16:39
*firefox had worked for me. How are you starting your selenium server? –  A.J Jul 6 '11 at 16:55
@BeforeClass public void setUp()throws Exception { SeleniumServer seleniumServer=null; try { seleniumServer = new SeleniumServer(); seleniumServer.start(); } catch (Exception e) { e.printStackTrace(); } selenium = new DefaultSelenium(setup.host, setup.port, setup.browser, setup.url); selenium.start(); } –  Armando Jul 6 '11 at 17:00
OK, I have updated my answer. –  A.J Jul 6 '11 at 17:18
add comment

Your Answer


