Home > selenium > Creating Firefox profile for your Selenium RC tests

Creating Firefox profile for your Selenium RC tests

Why create a new firefox profile for Selenium?

We create firefox profile for Selenium RC tests, so we can set light configurations to it, which later on we’ll be using to run our Selenium scripts FASTER.

How to create Firefox profile for your Selenium?

  1. Make sure all your firefox instance are closed
  2. Click Start>Run
  3. Type “firefox.exe -ProfileManager -no-remote”
  4. Select “Create Profile” (i.e. selenium)
  5. Click “Next”
  6. Enter new profile name
  7. Select a directory folder to store your new profile
  8. Click “Finish”
  9. Select “Don’t ask at startup”
  10. Click “Start Firefox” and configure settings based on suggestion below***
  11. Set Profile back to “default” (enable you to use your previous settings on your browser)
  12. Add -firefoxProfileTemplate command line option as you start the Selenium Server

java -jar selenium-server.jar -firefoxProfileTemplate “<Selenium Profile Directory>”

*** Suggested settings for your Selenium Profile

  1. From “View\Toolbars” tab, uncheck “Bookmarks Toolbar”
  2. Right click from toolbar and click “Customize”
  3. Remove “Google search” by dragging it to the “Customize Toolbar” window
  4. From the “Customize Toolbar” window, click “Use Small Icons” check box then hit “Done”
  5. Click “Tools\Options” then set the following:
    a. “Main” tab
    – set Home Page to “about:blank”
    – uncheck “Show the Downloads..” option
    b. “Tabs” tab
    – Select “a new window” for new pages
    – Uncheck all warning options
    c. “Content” tab
    – uncheck “Block pop-up” windows option
    d. “Privacy” tab
    – uncheck all “History” options
    e. “Security” tab
    – uncheck all “Security” options
    – click “Settings” and uncheck all warning options
    f. “Advanced” tab
    – Uncheck “autoscrolling” option from “General” tab
    – uncheck “warn me …” and “Ssearch Engines”option from “Update” tab
  6. From “Tools\Add-ons” install the following:
    – Firebug: allows you to edit, debug, and monitor CSS, HTML, and JavaScript on your application under test
    – Selenium IDE: allows you to record, edit, and debug Selenium tests
    – ScreenGrab: saves entire webpages as images.
  7. From the address bar type “about:config” and add the following by right-click anywhere on the page and selecting “new”
    – extensions.update.notifyUser (type=boolean; value=false)
    – extensions.newAddons (type=boolean; value=false)
  1. aaron
    February 18, 2009 at 8:39 am

    nice post! very detailed 🙂

  2. Dave Hunt
    May 7, 2009 at 6:52 pm

    Thanks! A really handy guide.

  3. May 15, 2009 at 4:27 pm

    hehehe,, this is so helpful, kakareformat lng so another creation ulit,, buti na lng na-blog ni girly girl…
    salamat po, Doc…

    isang suking tagahanga,
    gracielita… hihihi

  4. Harish
    August 26, 2009 at 12:21 pm

    Awesome post..
    I searched and searched the internet for this , but found nothing as clear as this one..
    Good Job…

  5. aaron
    August 27, 2009 at 8:15 am

    For those on Ubuntu, you can add this to #7:

    – toolkit.networkmanager.disable (type=boolean, value=true)

    This will prevent Firefox from automatically running in offline mode when you are not connected to the internet.

  6. September 2, 2009 at 1:43 pm

    on a mac, launch FF with:
    /Applications/Firefox.app/Contents/MacOS/firefox -ProfileManager -no-remote

    creates the profile fine, though I haven’t got firefoxProfileTemplate working yet (it just loads the standard selenium profile)

  7. Evan Leonard
    September 5, 2009 at 6:12 am

    Anyone get “extensions.newAddons (type=boolean; value=false)” working with FF 3 or 3.5?

  8. Evan Leonard
    September 5, 2009 at 6:13 am

    Err, I guess both of these are required.. Anyway anyone using these with FF3 or 3.5?

    extensions.update.notifyUser (type=boolean; value=false)
    – extensions.newAddons (type=boolean; value=false

  9. girlie
    September 7, 2009 at 12:37 pm

    @evan – yeah, we’re able to set the two configurations in FF3.0.13 to be exact, and get rid of the ‘extension upgrade’ window everytime Selenium server launches FireFox;
    @aaron and xavier – your info are greatly appreciated. thanks!

  10. Marcio Mazza
    October 2, 2009 at 9:53 pm

    In [5.f] I’ve also unchecked “Check my spelling as I type”

  11. October 5, 2009 at 4:56 pm

    Thanks for this. When I need to modify a few items in selenium I always end up here.

  12. Hitesh
    October 26, 2009 at 9:36 pm

    Thanks a Lot for a clear document. It really helped

  13. November 18, 2009 at 12:04 am

    Thanks it helps and worked!
    Actually this profile can also be used to accept unassigned certificates for testing https:// websites

  14. Naveen
    December 26, 2009 at 3:23 pm


    I am Naveen.I had learnt ,how to run selenium IDE & selenium RC.The main thing is how to generate a Test Report after the running the test Succesfully.And another thing is How to run Selenium Core and when it is useful .And suggest some more open source tools for testing .Net and Java Projects ………………………..

    Try to help me…..


  15. January 24, 2010 at 1:37 am

    hey, this was more in detail – cheers…

  16. yourik
    February 10, 2010 at 9:33 pm

    Hi, thank you for clear instruction. But I have a problem – I can’t authenticate via client certificate. In default configuration it’s possible. Is there a solution?

  17. yourik
    February 10, 2010 at 11:41 pm

    sorry, it was my fault 😦

  18. Nitin
    March 25, 2010 at 3:35 pm

    Hi all,

    Has anyone been able to find out the equivalent for extensions.newAddons in FF 3.6. The add-ons pop-up keep on coming up every time the RC is started.


  19. March 26, 2010 at 4:27 pm

    hi nitin,

    its still “extensions.newAddons” in FF3.6, make sure you set the value to false and also please check your extensions.update.notifyUser (type=boolean; value=false). and let’s see if you’ll still encounter the pop ups.


  20. nitin
    April 29, 2010 at 2:08 am

    hi i have done creating profile by following the below steps ..but how to handle the exceptions when website is posted using https? can some one help me out ..

  21. jonathan
    June 14, 2010 at 4:47 am

    To really speed things up I would like to have Ad Block add-in activated. How do I do that?

  22. June 16, 2010 at 6:35 pm

    hi jonathan,

    run “firefox.exe -ProfileManager” and go to your Selenium Firefox profile. from Tools\Add-ons you can get and install the AdBlock that you like.


  23. Neelu
    June 25, 2010 at 7:05 pm

    thanks for this excellent steps for avoiding add-on pop-up while running selenium rc

  24. jonathan
    June 28, 2010 at 3:12 pm

    @girlie – thanks, it worked and was simpler than I thought.
    @Neelu – ADBlock will not only block pop-ups, but mainly save the browser valuable time for downloading useless ads

  25. Chris
    July 7, 2010 at 4:23 pm


    I’ve followed these instructions to the letter, but Firefox (3.5.10) always loads with a profile that ISN’T either my default or my Selenium one. I know this because there are no add-ons on the browser that’s loaded, and on both profiles there are definitely add-ons.

    Here’s my Selenium startup command:
    java -jar lib/selenium-server.jar -firefoxProfileTemplate “C:\Apps\FirefoxProfiles\Selenium”

    Any ideas? Thanks.

  26. July 7, 2010 at 6:56 pm

    Hi Chris,

    your selenium server start up command seems fine. how did you launch your firefox browser in your scripts?


  27. third
    July 9, 2010 at 10:03 pm

    Hi Girlie,

    I’m new to selenium, I have copied a proj from svn. I can use iehta to run the test suite but not firefox/chrome . Do you have any idea how I can use firefox/chrome to run the test suite? Thanks

  28. July 13, 2010 at 3:01 pm

    Hi third,

    try something like this:
    @selenium = Selenium::SeleniumDriver.new(‘host’, ‘port’,’browser’,’url’,’timeout’)
    e.g. (‘localhost’ , 4444, ‘*chrome’ , ‘http://www.google.com’, 10000)

    Supported browsers include:

  29. July 20, 2010 at 11:56 pm

    Hi all,
    I have a problem with this. I have defined a new firefox profile, and after running the java -jar command with the profile argument the firefox window never appears.
    If I try to open an url from a word document for example, the firefox window appears with the new profile selected. It seems like I have to do something else to make the firefox window appearing.
    Could anyone help me?

  30. August 18, 2010 at 6:26 pm

    hi rpmanuelo,

    could you indicate the actual command you used to launch your firefox profile.


  31. September 16, 2010 at 8:46 pm

    i use selenium RC on ubuntu 9.10, i try to test my intranet but a http pop up appears. i try to handle that by creating a profile but the problem persist. although i put extensions.update.notifyUser (type=boolean; value=false), but the popup for update add on appears.
    Any one have an idea?
    What if the authentication is related to kerberos and ldap???

  32. Fazir
    October 3, 2010 at 5:19 am

    I have followed your tutorial but my Selenium is starting default profile though. I would appreciate any hint how to make it properly.

    Here is my snippet of my java code:

    selenium = new DefaultSelenium(“localhost”, 4444, “*firefox”, “http://somewhere.com”);

    I start Selenium Server in this way:

    java -jar D:\Library\selenium-server-1.0.3\selenium-server.jar –
    firefoxProfileTemplate C:\Users\Fazir\AppData\Local\Mozilla\Firefox\Profiles\mi

    Both paths are fine, anyway Selenium uses default profile. Please help me if you can 🙂

  33. Fazir
    October 3, 2010 at 5:27 am

    Problem fixed, the problem was incorrect path. There are two similar directories in Windows 7:


    The second is proper one 😉

  34. Vas
    October 11, 2010 at 5:50 pm

    Hi Girlie,

    I have created firefox profile in default location and trying to launch with Selenium RC. Selenium is launching the right profile but still Add-on page is displaying. I have set all ‘false’ as you said but still facing the problem. ff version is 3.6.8.
    Whenever Selenium launches firefox the profile is opening from a Temp folder (I don’t know whether this is a right behaviour), but the option “extensions.newAddons” is not appear in “about:config”.

    Please help to resolve this.


  35. Vas
    October 11, 2010 at 6:09 pm

    Hi Girlie,

    I have followed all the steps as mentioned above and created successfully, now my Selenium is opening the profile which I have given. The actual problem is Add-on page, even I set all the values specified above and still getting that pop-up. (FF version 3.6.8)

    Once Selenium launches the firefox I am not finding the “extensions.newAddons” in the about:config page. I don’t know what is the mistake I am doing. Please help me to resolve this.


  36. October 11, 2010 at 6:37 pm

    Hi Vas,

    If you have you successfully added “extensions.newAddons” in the preference list of your Selenium profile, you should be able to find it there. Are you sure you’re launching the right firefox profile?
    You might need to check the selenium name and directory as you start your selenium server OR manually check it by running the “firefox.exe -ProfileManager -no-remote” then select your selenium profile there.


  37. Vas
    October 11, 2010 at 7:24 pm

    Hi Girlie,

    Thanks for quick response. The problem is resolved. Actually I have added “extensions.newAddons” option after opening the firefox by Selenium which creates in run time and open the firefox from temp folder. I opened FF manually and added the option then it is working fine.

    The other issue is I have created a profile in my personal folder other than the default location like Folder Name : C:\TestAutomation\FFProfile
    Profile in the folder : selProfile

    Once created I am seeing all the files in the “C:\TestAutomation\FFProfile” instead “selProfile”. If this is right behavior then please let me know how to use this profile in my script.

    Thanks again.

  38. Vas
    October 12, 2010 at 4:39 pm


    Any idea on the above issue, what is the profile name if we change the profile location to other than default location.


  39. October 12, 2010 at 5:09 pm

    Hi Vas,

    FFProfile – is your default firefox profile
    selProfile – is your selenium profile

    If i understood your question correctly, you should be able to use your profile by first launching Seleniumusing this command:
    java -jar selenium-server.jar -firefoxProfileTemplate “”

    in your case, it would be: java -jar selenium-server.jar -firefoxProfileTemplate “C:\TestAutomation\selProfile”
    Lemme know if it works.


  40. Vas
    October 12, 2010 at 5:44 pm

    Sorry Girlie,

    That is not working and getting “Firefox profile template doesn’t exist:”

    FFProfile – is your default firefox profile – No, this is the folder, where selProfile is located.
    selProfile – is your selenium profile – Yes, this is a profile name


  41. October 12, 2010 at 6:06 pm

    Hi Vas,

    i see. sorry for the confusion. you should launch Selenium by this command: java -jar selenium-server.jar -firefoxProfileTemplate “C:\TestAutomation\FFProfile”
    “selProfile” would only be seen in the Profile Manager. what’s important when launching selenium is the Selenium Profile Directory and not Profile name.


  42. Vas
    October 12, 2010 at 6:36 pm

    Hi Girlie,

    Sorry, again same error. The below one is working.

    java -jar C:\Installables\SeleniumRC\selenium-server-1.0.3\selenium-server.jar -firefoxProfileTemplate “C:\Documents and Settings\vas\Application Data\Mozilla\Firefox\Profiles\uzex29sg.SeleniumProfile”

    But if I change the location it is not working.

    Can I have your mail id to give more screen shots with more details.


  43. Vas
    October 12, 2010 at 6:43 pm

    Sorry..sorry….sorry.. it is working. I don’t know what is the wrong. I closed all the sessions and started execution then it started working.

    Thank you very much for your help.
    I have one more problem Girlie, that is multiple applications operation.
    I have to create a record using one application and verify the same record in the another application. How to handle this situation.

    Sorry for asking more questions…

  44. poiu2000
    October 25, 2010 at 5:48 pm

    Hi Girlie,

    Thanks a lot for your post, it help me solved a problem haunting me for a long time, I just didn’t know how to configure the profile for the firefox instance launched by Selenium sever…, thanks a lot:)


  45. November 22, 2010 at 9:36 pm

    Thanks for the instruction!

    Based on it, I created my Russian version http://bugtrack-online.blogspot.com/2010/11/selenium-server-firefox.html

  46. rpmanuelo
    December 16, 2010 at 12:53 am

    Hi Girlie,
    Excuse me but I did not attend to your question because I was involved in other projects.
    I launch the server using this command: java -jar selenium-server.jar -firefoxProfileTemplate “C:\firefox_monitor”
    but it does not start any firefox window (default profile nor “firefox_monitor” profile).
    Thanks again.

  47. rpmanuelo
    December 16, 2010 at 6:20 pm

    Hi again Girlie,
    I got it. I checked the firefox profile settings and how to invoke the selenium server and it is working properly.

  48. San
    January 28, 2011 at 11:03 pm

    Hi Girlie,

    I am able to start the selenium server with the new profile and it also kicks off using selenium.

    My problem is i still get a “untrusted connection…” page after all the above settings. Could you please help?

    My code clicks on a link on an “http” page which takes to an “https” page where i see this problem.


  49. San
    January 28, 2011 at 11:25 pm

    Hi Girlie,

    I could get this working by kicking off the firefox profile browser once manually and setting up the security certificate. Now my profile picks the certificate from
    selenium rc too.

    I got a few question though just for information:
    1) Out of all the steps which you mentioned above which is that step which actually tells the browser that it is a trusted connection?
    2) When i do the similar setting on my default profile then the trusted connection doesn’t work?


  50. bwurr
    February 10, 2011 at 9:57 pm

    Hi All,

    Thanks for the great replies here. Was stuck on that profile issue for a while……win 64 with selenium uses the roaming profile…..good stuff!

  51. March 2, 2011 at 6:18 pm

    Thanks, works like a charm!

  52. jk
    April 14, 2011 at 5:41 pm

    Hi All,

    If you are still having problems with self-signed certificates in FF, check my solution.

    Hope this work also for you 🙂


  53. ramana
    June 24, 2011 at 6:26 am

    it is very help full .

  54. Gijo
    June 29, 2011 at 8:10 pm

    The Selenium server fails to load any page(“Problem loading page”) . The Code is as below :
    Please give some inputs


    package com.example.tests;

    import com.thoughtworks.selenium.*;
    import org.junit.After;
    import org.junit.Before;
    import org.junit.Test;
    import java.util.regex.Pattern;

    public class GoogleTest extends SeleneseTestCase {
    public void setUp() throws Exception {

    selenium = new DefaultSelenium(“localhost”, 4444, “*firefox”, “http://www.yahoo.com/”);


    public void testGoogle() throws Exception {


    public void tearDown() throws Exception {

  55. July 7, 2011 at 3:14 am

    Custom Firefox Profile from Selenium RC
    This .bat file :
    java -jar C:\Selenium\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar -firefoxProfileTemplate “C:\Documents and Settings\xx28039\Application Data\Mozilla\Firefox\Profiles\selenium.default” “https://webdev.tschca3.xxxxxx.com/HAA/Login.htm” “C:\Selenium\testsuite.html” “C:\Selenium\results.html”

    When I open the batch file, it opens and closes in a second. Please help me.
    I have created FireFix Profile using this link ( https://girliemangalo.wordpress.com/2009/02/05/creating-firefox-profile-for-your-selenium-rc-tests/ )

    My FireFox version : 3.6.17
    Java version : 1.6.0_26

    While creating FF profile , I have given path C:\Selenium\seleniumFFProfile

    I tried both paths after – firefoxProfileTemplate . Both are giving same problem.

    If I use below .cmd commnad, FF is launching and works fine except certification issue.
    MY application is https:

    java -jar “C:\Selenium\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar” -htmlSuite “*chrome” “https://webdev.tschca3.xxxxx.com/HAA/Login.htm” “C:\Selenium\testsuite.html” “C:\Selenium\results.html” -log selenium.log

    Please help me.


  56. sairam
    July 8, 2011 at 8:32 pm


    i followed the above steps mentioned in creating the firefox profile and i kept my profile name as Pselenium and stored it in C:\Selenium folder and when i run the RC command “java -jar selenium-server-standalone-2.0b3.jar -firefoxProfileTemplate “c:/Selenium/Pselenium”” i am seeing error message “Firefox profile template doesn’t exist: c:\Selenium\Pselenium”

    can any one say where the problem could be


  57. George
    July 16, 2011 at 6:12 am

    Daniel Pötzinger :
    Thanks it helps and worked!
    Actually this profile can also be used to accept unassigned certificates for testing https:// websites

    How does this profile accept unsigned certificates? Which setting did that? thanks

  58. September 7, 2011 at 3:54 pm

    Hi sairam,

    kindly check your forward slash in your selenium profile directory. please try java -jar selenium-server-standalone-2.0b3.jar -firefoxProfileTemplate “c:\Selenium\Pselenium” and let us know if this works


  59. Swagatika
    October 18, 2011 at 5:28 pm

    Nice post.

    But I am still having the issue, even after creating a profile and doing the Exception setting. I am adding the URL in the exception list.

    Still I get the

    This Connection is Untrusted

    You have asked Firefox to connect
    securely to someUrl:9444, but we can’t confirm that your connection is secure.
    Normally, when you try to connect securely,
    sites will present trusted identification to prove that you are
    going to the right place. However, this site’s identity can’t be verified.

    What Should I Do?

    If you usually connect to
    this site without problems, this error could mean that someone is
    trying to impersonate the site, and you shouldn’t continue.

    Technical Details

    I Understand the Risks


    Please could you suggest me, what might be wrong.

  60. Abdul
    November 3, 2011 at 5:57 am

    Naveen :
    I am Naveen.I had learnt ,how to run selenium IDE & selenium RC.The main thing is how to generate a Test Report after the running the test Succesfully.And another thing is How to run Selenium Core and when it is useful .And suggest some more open source tools for testing .Net and Java Projects ………………………..
    Try to help me…..

    I update my test result on a spreadsheet which has been very successful.

  61. Celio
    November 4, 2011 at 1:50 am

    such helpful guide.
    Thank you

  62. Srinivas C
    November 23, 2011 at 11:59 am


    I am unable to view flash content in the Selenium launched firefox.

    Background and description:
    I am trying to run my Selenium tests on Linux. The AUT contains has a
    lot of flash content(like graphs and pie charts). I am unable to view
    the flash content (in the application) in the Selenium launched
    browser (asks to install latest adobe flash). However, on the same
    machine, I am able to view the flash content when I launch firefox directly; but not in the browser launched by Selenium.

    In the Selenium launched browser, the plugins (along with adobe flash
    plug-in) are not displayed in Tools->add-ons->plug-ins. The firefox launched riectly, on this machine has the adobe flash plug-in.

    Any ideas, why selenium is not able to load the plug-ins?

    I tried using the -firefoxProfileTemplate option, but still does not work

    Selenium java client driver is 1.0.1
    Selenium server is 2.0

    I did create a profile manually and started the Selenium Server after associating the Profile. but, for some reason, it does not pick the Profile that I point to as In don’t see the plug-ins in the Selenium launched browser.

  63. December 4, 2011 at 8:39 pm

    Very soon this website will be famous amid all blogging users, due to it\’s nice posts

  64. December 14, 2011 at 11:28 am

    Nice article, but what I’ve noticed, at least for FF 3.6 profile manager is that there is no option to import and export an existing FF profile. So you can only create new ones and edit existing ones on your FF installation (i.e. existing profiles you’ve set up on the machine).

    As a hack, to do an import, I’ve create a dummy profile with the manager, then open FF with it, and exit FF. Then replace/overwrite content in that profile with profile to import. Then open FF again with that modified profile and make any additional changes as needed, then exit. Then can manually copy back that profile folder elsewhere as export step. This method allows you to update a FF profile created on another machine.

    Is there any better method to do an import/export other than my hack? Or use newer version of FF?

  65. Neha
    January 20, 2012 at 12:34 am

    Hi, I have created a firefox profile. still it gives me security error every time I open my website. I am using Firefox template when I start the selenium server.
    Am I missing something/

  66. Igor
    January 28, 2012 at 5:26 pm

    Hi! Help, please. How to specify a profile in the code? Server started from code, and each time creates a new profile.

  67. February 1, 2012 at 1:42 pm

    Hi lgor,

    Depends on your framework but simply I think what you need is a batch file that looks something like this:

    java -jar selenium-server.jar -firefoxProfileTemplate “[profile_directory]”

    Upon executing this, you are basically pointing to your profile_directory.


  68. February 1, 2012 at 3:59 pm

    It might also be useful to update this blog post with info on Selenium 2 / Web Driver and FF profiles. I think Igor’s post can relate to that as Web Driver starts profile from code rather than the Selenium server, the latter option no longer valid.

    This of course is a bit language dependent, and here’s a sample in Java. Most of the Web Driver samples / doc tell you how to create new/blank profile and then customize config and load it with any extensions. My sample shows how to load existing FF profile you created for Selenium RC and reuse it for Selenium 2 / Web Driver.

    FirefoxProfile profile = new FirefoxProfile(new File(“C:\\PathTo\\CustomProfileDirectory”));
    driver = new FirefoxDriver(profile);

  69. vignesh
    February 7, 2012 at 4:44 pm

    Hi, I tried creating a new profile and gave it in the startup prompt and when i added a add-on that is httpfox via the browser…and brought it up with that profile..it was not there.. 😦 please help….

  70. vas
    February 10, 2012 at 6:59 pm

    Vignesh, try closing all the browser sessions and open freshly then try…

  71. goms
    February 28, 2012 at 4:39 am

    public class Enrollment extends SeleneseTestCase {
    public void setUp() throws Exception {
    selenium = new DefaultSelenium(“localhost”, 4444, “*firefox”, “https://google.com/”);
    After running this using RC, Firefox browser is opened but not the url google.com, Please help….

  72. Anthony
    March 1, 2012 at 10:50 pm

    can we create googlechrome profile for my Selenium RC tests similar to firefox profile???? If not “How can I avoid SSL certificate popups in googlechrome?”

    plzz help mee

  73. Jagan
    March 1, 2012 at 11:39 pm


    Is it possible to create googlechrome profile for Selenium RC tests similar to firefox profile

    Can some body help me in creating googlevchrome profile for Selenium RC tests in order to avoid SSL certificate popups?

  74. peaceinmind
    March 29, 2012 at 9:58 am

    Thanks. this is helpful. After following everything when I tried to run something, it opens firefox but then it gets stuck. The page is blank and it shows something like this in dos –

    T E S T S
    Running TestSuite
    – Working with browser flavor : *firefox
    – starting a local RC
    – using profile SeleniumProfile located C:\Documents and Settings\username\Deskto

    After that, it is stuck and doesn’t go anywhere. Any thing that i might have done wrong in the setting:?

  75. swati khandelwal
    April 4, 2012 at 6:59 pm

    Awesome post it helps me a lot and its content is very effectively written and clear

  76. Sowmya
    April 19, 2012 at 9:27 pm

    Thankyou so much Girlie.This is so clear and very helpful.Thanks a lot.Your post really saved me.

  77. Santhosh Candula
    May 3, 2012 at 4:06 pm

    Thanks for your post.
    We were stuck at creating/running a new Firefox profile with Selenium.
    We googled and found your post very helpful.
    Thanks from our IT Team

  78. May 9, 2012 at 5:48 pm

    You’re always welcome guys! I’m glad this post is helpful in your Selenium experience 🙂 Let’s all continue learning and sharing! ftw!

  79. Tobias
    May 15, 2012 at 11:47 pm

    If you have problems with Selenium not accepting your -firefoxProfileTemplate param, there’s a simple solution:
    WRONG: java -jar “selenium-server-standalone.jar” -htmlSuite … -firefoxProfileTemplate …
    RIGHT: java -jar “selenium-server-standalone.jar” -firefoxProfileTemplate … -htmlSuite …

    You have to flip the order of the two parameters 🙂

  80. Mahrez
    June 1, 2012 at 5:15 pm


  81. Niroshan N
    June 1, 2012 at 11:48 pm

    Hi Girlie,

    Many thanks for your post, its been extremely helpful, however I’ve hit a road block on the steps,

    my test environment is trunk.tools,

    what would be the values for my test enviroment “network.negotiate-auth.delegation-uris”…this is what I’ve had under values “localhost,trunk”

    I’ve also tried number of other values such as “localhost,trunk,tools” & “trunk,tools,localhost”

    I would greatly appreciate your help

    Niroshan N

  82. MrBCut
    June 20, 2012 at 11:08 am

    thank you girlie! you are a rockstar!

  83. Ivan
    June 29, 2012 at 5:43 pm

    thank you!

  84. August 2, 2012 at 5:03 am
  85. Srividhya
    August 13, 2012 at 7:37 pm

    Hi, I am a beginner to Selenium and I am struck with Firefox Profile. The issue I am facing is:
    In my application, a Firefox addon has to be installed for using my site. So I create a Profile and login to my site, install the add-on and mention this profile in my Selenium code.
    When I run the code, the firefox opens up with “Add-on” Page which throws “Modal dialog present” to my code…

    Please help me in launching the Firefox with my profile but without the Add-on page popping in..

    I am using Selenium webdriver with Python
    The code I used is :
    fp = webdriver.FirefoxProfile(“D:/srivi/profile”)
    self.driver = webdriver.Firefox(fp)

  86. Mani
    October 16, 2012 at 6:07 pm

    Nice quotes and very useful…

  87. October 17, 2012 at 9:56 am

    Thought I should bring this up for discussion. Great that this article has helped many. But are so many still on Selenium RC? I made comment or two previously regarding use of profiles for Selenium 2 / WebDriver and about editing/updating profiles between machines that this original article does not cover. Would be nice to hear some comments/discussions about these areas.

  88. Wendell
    November 16, 2012 at 7:04 am

    hi Girlie…i have fixed my problem with firefox with your post…but I cant run chrome now…can anyone help me on this…i am still new to selenium rc….

  89. Wendell
    November 21, 2012 at 4:04 am

    Ignore my question I already have fixed it….i have found out that platform property is key sensetive…..(so from windows it was really WINDOWS)…..but thnx though…..

  90. Wendell
    November 29, 2012 at 11:20 pm

    Hi Girlie…

    I have encountered another problem…I have uninstalled firefox and installed it again but now the selenium is now running with weird actions on firefox…

    Failure: OpenQA.Selenium.UnhandledAlertException : Modal dialog present
    Build info: version: ‘2.26.0’, revision: ‘18041’, time: ‘2012-11-01 19:33:38’
    System info: os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.7.0_09’
    Driver info: driver.version: EventFiringWebDriver
    Session ID: c4a23254-250d-43bf-bc5b-06dde3ec26f0

    I have tried debugging and it seems this was fired when I tried to get the current url(driver.Url)….

    It does this weird action…it reloads the page that makes the driver null…

    By the way I am installing firefox not on default location (in here: “C:\Program Files (x86)\Mozilla Firefox”)…I am using now Firefox 15 and selenium 2.26…..

    I could clarify more details if needed…
    Please help me with this…I have been stuck at this problem for 2 days now….Anyone please

  91. November 30, 2012 at 10:44 am

    Hi Wendell,

    Try downgrading your Firefox version, i’ve read in some forums that latest selenium 2.26 have issues running in firefox 15++.
    Also can you try rolling back your selenium as well to 2.25 which is the latest stable version of selenium based on their site http://seleniumhq.org/download/

  92. Wendell
    December 1, 2012 at 8:00 am

    Hello girlie,

    I have fixed it…thnx for verifying i really did think it has some issues…but i have founded out it was an issue with the site I was testing…now i got it fixed…i think in selenium 2.26 they added special handling to unexpected alerts which was not included in 2.25….i don’t if it was good or not….But really thanks…million of thanks….^_^

  93. December 4, 2012 at 10:26 am

    I recently was updating one FF profile we have for automation and came to notice that when you configure/customize an FF profile for Selenium automation, you don’t actually need all the (junk) files in the FF profile directory. You only need the core files. It would be interesting to figure out what core files are exactly needed to retain the desired customized settings. One given is you need the XPI FF extensions or their repsective directories within the FF profile directory in order to load them, but what else is really needed. Trial and error to find out. But it would be nice if someone can provide insight into this. Perhaps I might when I get a chance.

  94. December 4, 2012 at 11:30 am

    good to hear that Wendell 🙂

  95. Wendell
    December 18, 2012 at 5:20 am

    thnx…and nice touch on the site….^_^

  96. Wendell
    December 18, 2012 at 11:00 pm

    hello girlie..

    Do you know of a way how to set up one server for the webdriver for chrome to run multithread at the same time…cause what happens is that it just queue up the threads…i have this…

    for selenium server:
    java -jar C:\SeleniumLibs\selenium-server-standalone-2.26.0.jar -firefoxProfileTemplate “C:\wendell\firefoxProfile\new\Selenium” -role hub -port 4445 -log “C:\Selenium Batch Files\selenium.log”

    for chrome:
    java -jar C:\SeleniumLibs\selenium-server-standalone-2.26.0.jar -role webdriver -hub http://localhost:4445/grid/register -port 5565 -browser “browserName=chrome,version=23.0,platform=WINDOWS” -Dwebdriver.chrome.driver=C:\SeleniumLibs\chromedriver.exe

    I have tried running multi windows for chrome server with different ports but it’s not quite good to look at cause it causes many windows to be opened….so is there another way?…

    Anyone please help…thanks

  97. December 3, 2013 at 2:12 pm

    how can i make sure my selenium test r using this profile?
    where do i need to make changes for that?

  98. Bob
    January 8, 2014 at 6:36 pm

    Hi Guys,

    Thank you for this posting… it did help me in the beginning and the Server started with
    a new session.

    But after I stopped the server via this command: http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer

    and then I couldn’t start it again with the new session… Error: “Unable to create new session”

    Any idea please?

    Many Thanks

  1. December 21, 2009 at 11:04 pm
  2. March 25, 2010 at 4:10 pm
  3. April 1, 2010 at 7:39 pm
  4. November 10, 2010 at 8:52 pm
  5. November 27, 2010 at 12:18 am
  6. March 19, 2011 at 7:01 pm
  7. April 14, 2011 at 5:37 pm
  8. November 9, 2011 at 3:46 pm
  9. November 9, 2011 at 6:57 pm
  10. March 2, 2012 at 12:29 am
  11. April 7, 2012 at 2:47 pm
  12. April 20, 2012 at 1:42 pm
  13. October 2, 2012 at 11:11 am
  14. December 3, 2013 at 5:26 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: