Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6603575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:01:57+00:00 2026-05-25T19:01:57+00:00

Selenium2, by default, starts firefox with a fresh profile. I like that for a

  • 0

Selenium2, by default, starts firefox with a fresh profile. I like that for a default, but for some good reasons (access to my bookmarks, saved passwords, use my add-ons, etc.) I want to start with my default profile.

There is supposed to be a property controlling this but I think the docs are out of sync with the source, because as far as I can tell webdriver.firefox.bin is the only one that works. E.g. starting selenium with:

java -jar selenium-server-standalone-2.5.0.jar -Dwebdriver.firefox.bin=not-there

works (i.e. it complains). But this has no effect:

java -jar selenium-server-standalone-2.5.0.jar -Dwebdriver.firefox.profile=default

(“default” is the name in profiles.ini, but I’ve also tried with “Profile0” which is the name of the section in profiles.ini).

I’m using PHPWebdriver (which uses JsonWireProtocol) to access:

$webdriver = new WebDriver("localhost", "4444");

$webdriver->connect("firefox");

I tried doing it from the PHP side:

$webdriver->connect("firefox","",array('profile'=>'default') );

or:

$webdriver->connect("firefox","",array('profile'=>'Profile0') );

with no success (firefox starts, but not using my profile).

I also tried the hacker’s approach of creating a batch file:

#!/bin/bash
/usr/bin/firefox -P default

And then starting Selenium with:
java -jar selenium-server-standalone-2.5.0.jar -Dwebdriver.firefox.bin=”/usr/local/src/selenium/myfirefox”

Firefox starts, but not using by default profile and, worse, everything hangs: selenium does not seem able to communicate with firefox when started this way.

P.S. I saw Selenium – Custom Firefox profile I tried this:

java -jar selenium-server-standalone-2.5.0.jar -firefoxProfileTemplate "not-there"

And it refuses to run! Excited, thinking I might be on to something, I tried:

java -jar selenium-server-standalone-2.5.0.jar -firefoxProfileTemplate /path/to/0abczyxw.default/

This does nothing. I.e. it still starts with a new profile 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:01:57+00:00Added an answer on May 25, 2026 at 7:01 pm

    Simon Stewart answered this on the mailing list for me.

    To summarize his reply: you take your firefox profile, zip it up (zip, not tgz), base64-encode it, then send the whole thing as a /session json request (put the base64 string in the firefox_profile key of the Capabilities object).

    An example way to do this on Linux:

    cd /your/profile
    zip -r profile *
    base64 profile.zip > profile.zip.b64
    

    And then if you’re using PHPWebDriver when connecting do:

    $webdriver->connect("firefox", "", array("firefox_profile" => file_get_contents("/your/profile/profile.zip.b64")))
    

    NOTE: It still won’t be my real profile, rather a copy of it. So bookmarks won’t be remembered, the cache won’t be filled, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm running Selenium tests from within Eclipse, but I can't load a custom Firefox
I want to use Selenium2 Chrome driver with Ruby/Python, but I only found those
Should I be doing anything different if I am using Selenium2.0/WebDriver with Firefox 4?
Selenium HQ records some web navigation and can replay it from Firefox. I want
I am seeing a problem in Selenium with IE6/8 that is giving me some
I have a Selenium test case that enters dates into a date selector made
I'm using selenium to run some functional tests on the UI for our current
I'm using SeleniumRC to run some selense tests via command line. This works mostly
I have a suite of webpart controls that I maintain and develop for our
I used to be able to launch all my Selenium2 WebDriver tests in Ruby

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.