Running Selenium Server Using Custom Firefox Profile

by Nataliia Vasylyna | March 7, 2011 3:00 am

Let’s create custom firefox profile at first:

1. Close all running copies of firefox
2. Start => Run
3. Type firefox.exe -ProfileManager -no-remote, other often offer to run command firefox.exe -ProfileManager, but it not worked for me because of the configuration of the system, but with the key -no-remote it should work 100%
4. In the window that opens, click Create. Read the instructions and click Next
6. Specify the profile name, location and click Finish
7. Profile was created
8. Select the profile you just created
9. Set option Don’t ask at startup
10. Run firefox by pressing Start Firefox

[1]

Next configure Firefox as you like. I have done the following:

• Removed menu bar, navigation bar and bookmarks bar
• Established a blank page as your home page
• Turned off the pop-up blocker option and automatic loading of images on Content tab
• On the Privacy tab disabled history remembering
• Disabled all warnings and interlocks on the Security tab
• On the Advanced tab disabled checking spelling, sending notices, check for updates

Then I installed necessary add-ons:

Then went to about:config and:

RAM / Number of pages
32 Mb …….. 0
64 Mb …….. 1
128 Mb …… 2
256 Mb …… 3
512 Mb …… 5
1 Gb ……… 8
2 Gb ……… 8
4 Gb ……… 8

browser.sessionstore.max_windows_undo -> 0
browser.sessionstore.resume_session_once -> false
browser.sessionstore.resume_from_crash -> false

browser.chrome.site_icons -> false
browser.chrome.favicons -> false

In general, my customization has ended.

To run the selenium server using firefox  with customized profile, you must add to your startup file a parameter –firefoxProfileTemplate and after parameter add the path to the profile. Note that, for example, in Windows 7 you can find two paths to the default profile

we need Roaming, so as a result in startup file we will see
java -jar selenium-server.jar -firefoxProfileTemplate C:\Users\Username\AppData\Roaming\Mozilla\Firefox\Profiles\custom_profile

Or in case of spaces  in the path it should be placed in quotes
java -jar selenium-server.jar -firefoxProfileTemplate “C:\Documents and Settings\Username\AppData\Roaming\Mozilla\Firefox\Profiles\custom_profile”

In fine we get a little faster browser  with the necessary settings for you .

Also we offer our clients QA automation[2] with Selenium framework. Selenium is a powerful set of tools, focusing on the rapid development of automation scripts for Web applications.

Learn more from QATestLab

Related Posts:

Endnotes:
  1. [Image]: https://blog.qatestlab.com/wp-content/uploads/2011/03/selenium_rc.png
  2. QA automation: https://qatestlab.com/services/our-qa-services/automated-testing/
  3. How automation testing can help your software development process: https://blog.qatestlab.com/2011/03/03/how-automation-testing-can-help-your-software-development-process/
  4. 6 Steps To Automate Your Testing Process: https://blog.qatestlab.com/2024/04/15/6-steps-to-automate-your-testing-process/
  5. Test Automation 101: Should The Programming Languages of Your Software and Autotests Match?: https://blog.qatestlab.com/2023/02/08/programming-languages-for-autotests/

Source URL: https://blog.qatestlab.com/2011/03/07/running-selenium-server-using-custom-firefox-profile/