There is a solution for this, but in order to use it you'll want to setup Firefox and Selenium to use a custom profile (since you have to install this plugin). To do so, start firefox with the
-profileManager
argument (ie. firefox -profilemanager
). Be sure not to have any instances running when you do this (or else it will be ignored). When the profile manager shows up:
- uncheck the "don't ask at startup" - we'll restore this later
- choose to create a new profile
- give your profile a name like "selenium" and click the choose folder. Before going further write down this path as you will need it along with the profile name. On Windows 7, mine would be
c:\users\myusername\AppData\Roaming\Mozilla\FireFox\Profiles
. - Launch Firefox using this profile.
- Go to your favorite website (like my blog). Without clicking in a textfield, hit the button "/". If you see a Quick Find show up, the next should help disable this.
- The process to disable the Quick find is documented here. In particular you'll need to download the plugin and install it to Firefox (on Windows is .xpi is not mapped to firefox choose to pick a file and choose firefox). Once installed, follow the instructions.
- After "disabling" it, try step 5 again and this time the Quick Find should not show up.
- Now you have a Firefox that will run the selenium tests without Quick Find, but selenium is not using it. The next step is to modify your selenium startup script (if you are running it by typing
java -jar selenium-server.jar
write a script!. In the script, add the flag-firefoxProfileTemplate path_to_profile_above\profile_name
to the end of the command. This will use your custom profile for executing the tests. - Finally, close down firefox and launch it again. This time checkoff the "Don't ask at startup" and choose your regular profile and you are off back using firefox with your profile.