FirefoxをverupするとSeleniumが動作しなくなった

Windows7/Firefox36/Python2.7/Selenium2.39で発生。

昨日まで動いていたプログラムがFirefoxのバージョンを上げた結果、以下のようなエラーメッセージを発して失敗するように。

...
File "C:\lib\Python27\lib\site-packages\selenium-2.39.0-py2.7.egg\selenium\webdriver\firefox\firefox_binary.py", line 105, in _wait_until_connectable
self.profile.path, self._get_firefox_output()))
selenium.common.exceptions.WebDriverException: Message: 'Can\'t load the profile.
...

解決策: seleniumのバージョンを上げる。
2.45が出ていたので、それにアップロードすることで問題は解消した。

cf. http://stackoverflow.com/questions/6682009/selenium-firefoxprofile-exception-cant-load-the-profile


結論: ブラウザをバージョンアップした後にseleniumが失敗したら、まずはバージョンを上げる。