Selenium RCからFirefoxが起動しない

この件は1年1回のペースでハマるのですが、JavaSelenium RCからFirefoxを起動しようとすると、以下のエラーで起動に失敗することがあります。

org.openqa.selenium.server.browserlaunchers.FirefoxChromeLauncher$FileLockRemainedException: Lock file still present! 〜

原因は、Seleniumに同梱されているFirefoxのプロファイルでFirefoxのバージョンが"3.5.*"のように指定されているためです。そのため、Firefoxをバージョンアップのするたびに対応が必要になります。現在は、selenium-serveの1.0.3を使用するとFirefox3.6が正常に起動します。selenium-serverが対応していない場合には、selenium-serverのjarファイルに含まれるcustomProfileDirCUSTFF配下にあるindex.rdfに含まれる

        <!-- Firefox -->
        <em:targetApplication>
            <Description>
                <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
                <em:minVersion>1.4.1</em:minVersion>
                <em:maxVersion>3.6.*</em:maxVersion>
            </Description>
        </em:targetApplication>

のem:maxVersionの部分を変更する必要があります。