User:Dan Nessett/Technical/Minimizing Firefox on Startup: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Dan Nessett
(New page: This page provides instructions how to minimize firefox on startup when using it as the target of a selenium test run. ==Creating a SeleniumProfile for Firefox== In order to minimize the...)
 
imported>Dan Nessett
No edit summary
Line 3: Line 3:
==Creating a SeleniumProfile for Firefox==
==Creating a SeleniumProfile for Firefox==


In order to minimize the firefox browser window automatically when it is used as the target of a selenium test run, it is necessary to first create a special SeleniumProfile that is used for these test runs. Detailed instructions how to do this are found at [http://luhman.org/blog/2010/03/26/using-custom-firefox-profile-when-running-selenium-tests <b>this URL</b>]. Summarizing, first run firefox's profile manager by executing (assuming a Linux OS):
In order to minimize the firefox browser window automatically when it is used as the target of a selenium test run, it is necessary to first create a special SeleniumProfile that is used for them. Detailed instructions how to do this are found at [http://luhman.org/blog/2010/03/26/using-custom-firefox-profile-when-running-selenium-tests <b>this URL</b>]. Summarizing, first run firefox's profile manager by executing (assuming a Linux OS):


<pre>$firefox -ProfileManager</pre>
<pre>$firefox -ProfileManager</pre>


This will start the profile manager. A window will appear showing you the profiles already defined and giving you the option of creating, deleting or renaming a profile. If you have not used the profile manager before, the only profile shown will be the default. To set up firefox with a Selenium Profile, click on the '''Create Profile''' button.  
This will start the profile manager. A window will appear showing you the profiles already defined and giving you the option of creating, deleting or renaming a profile. If you have not used the profile manager before, the only profile shown will be the default. To set up firefox with a Selenium Profile, click on the '''Create Profile''' button. Click the '''next''' button at the bottom and in the text field type '''SeleniunProfile'''. Before clicking '''finish''', look just below the text field and note where the profile is stored. Generally, this is in your personal mozilla directory using (for Ubuntu 8.04) a path such as: '''<your home directory>/.mozilla/firefox/gs4mzy7f.SeleniumProfile'''. Note that the name of the profile is prefixed by a random number. You will need this directory path information in a later step. If you forget to copy this down, you can always navigate to your personal mozilla directory and find the profile directory. When you click finish, an instance of firefox using the SeleniumProfile starts. Keep this browser window open for use in the next step. Once you have completed configuring the profile, you can return to using another profile (e.g., the default profile) by once again executing the profile manager as shown above, selecting the profile you wish to use and clicking on the '''Start Firefox''' button. The selected profile will remain in effect until you select another in the same way.


==The Firefox <i>Minimize on Start and Close</i> addon==
==The Firefox <i>Minimize on Start and Close</i> addon==
Once you have created a SeleniumProfile for selenium test runs, you need to install the '''Minimize on Start and Close''' addon to firefox

Revision as of 12:45, 17 August 2010

This page provides instructions how to minimize firefox on startup when using it as the target of a selenium test run.

Creating a SeleniumProfile for Firefox

In order to minimize the firefox browser window automatically when it is used as the target of a selenium test run, it is necessary to first create a special SeleniumProfile that is used for them. Detailed instructions how to do this are found at this URL. Summarizing, first run firefox's profile manager by executing (assuming a Linux OS):

$firefox -ProfileManager

This will start the profile manager. A window will appear showing you the profiles already defined and giving you the option of creating, deleting or renaming a profile. If you have not used the profile manager before, the only profile shown will be the default. To set up firefox with a Selenium Profile, click on the Create Profile button. Click the next button at the bottom and in the text field type SeleniunProfile. Before clicking finish, look just below the text field and note where the profile is stored. Generally, this is in your personal mozilla directory using (for Ubuntu 8.04) a path such as: <your home directory>/.mozilla/firefox/gs4mzy7f.SeleniumProfile. Note that the name of the profile is prefixed by a random number. You will need this directory path information in a later step. If you forget to copy this down, you can always navigate to your personal mozilla directory and find the profile directory. When you click finish, an instance of firefox using the SeleniumProfile starts. Keep this browser window open for use in the next step. Once you have completed configuring the profile, you can return to using another profile (e.g., the default profile) by once again executing the profile manager as shown above, selecting the profile you wish to use and clicking on the Start Firefox button. The selected profile will remain in effect until you select another in the same way.

The Firefox Minimize on Start and Close addon

Once you have created a SeleniumProfile for selenium test runs, you need to install the Minimize on Start and Close addon to firefox