If I don't specify a firefox binary and let Selenium use the installed Firefox, everything works fine. Selenium doesn't work with this firefox either. I also made sure that my code modifications are not the reason for this to crash by building a clean, unmodified firefox. Unfortunately, I installed the newest version of selenium (2.44.0) and I even used an older version of firefox (version 33) to rule out that point. I did google that error message and most solutions suggested, that I should Update Selenium since it does not support the Firefox version used. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details. Raise WebDriverException("Can't load the profile. But after a while, the python script crashes with the following error message: Traceback (most recent call last):įile "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/firefox/webdriver.py", line 59, in _init_įile "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/firefox/extension_connection.py", line 47, in _init_įile "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 66, in launch_browserįile "/usr/local/lib/python3.4/dist-packages/selenium/webdriver/firefox/firefox_binary.py", line 109, in _wait_until_connectable The Firefox does open and is responsive (I can enter a website in the search bar). I did the following: from selenium import webdriverįrom _binary import FirefoxBinaryīinary = FirefoxBinary("/path/to/firefox/binary")ĭ = webdriver.Firefox(firefox_binary=binary) In order to automate testing, I opted to use Selenium but unfortunately, my newly built Firefox seem to not support Selenium. For my research, I did some source code modifications in firefox and build it myself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |