OS : Ubuntu 14.04 64bit
selenium 2.53.5
$ firefox --version
Mozilla Firefox 47.0
|
After upgrading Firefox from 46.0 to 47.0 via apt-get, a slenium script does not work with FF47. This script worked well with FF 46.0.
$ python /home/hattori/Python_works/selenium_Test06.py
E
======================================================================
ERROR: test_selenium_Test02 (__main__.SeleniumTest02)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/hattori/Python_works/selenium_Test06.py", line 20, in setUp
self.driver = webdriver.Firefox()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 81, in __init__
self.binary, timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 51, in __init__
self.binary.launch_browser(self.profile, timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 68, in launch_browser
self._wait_until_connectable(timeout=timeout)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 98, in _wait_until_connectable
raise WebDriverException("The browser appears to have exited "
WebDriverException: Message: The browser appears to have exited before we could connect. If you specified a log_file in the FirefoxBinary constructor, check it for details.
----------------------------------------------------------------------
Ran 1 test in 3.048s
FAILED (errors=1)
|
Here is a temporary solution I found.
remove firefox
$ sudo apt-get purge firefox
install FF46.0
$ wget https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_46.0.1-0ubuntu1_amd64.deb
$ sudo dpkg -i firefox-mozilla-build_46.0.1-0ubuntu1_amd64.deb
$ firefox --version
Mozilla Firefox 46.0.1
$ sudo apt-mark hold firefox
$ python /home/hattori/Python_works/selenium_test06.py
.
----------------------------------------------------------------------
Ran 1 test in 40.916s
OK
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.