Selenium Firefox Profile not working

collarblind

I am trying to load my selenium firefox profile and I keep getting the error:

WebDriverException: Message: Can't load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details.

The code was working fine 15 minutes ago.. I am not sure what happened.

I have firefox 43.0.4 and selenium 2.49

This is my code that throws an error:

profile = webdriver.FirefoxProfile()
driver = webdriver.Firefox(profile)

I am using Windows 7 Professional, Python 2.7.10 | Anaconda 2.3.0 (64-bit)

Traceback:

    Traceback (most recent call last):
  File "C:\Users\Moyp\dev\anaconda\lib\site-packages\IPython\core\interactiveshell.py", line 3035, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-15-37f7d14be053>", line 2, in <module>
    driver = webdriver.Firefox(profile)
  File "C:\Users\Moyp\dev\anaconda\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 77, in __init__
    RemoteWebDriver.__init__(self,
  File "C:\Users\Moyp\dev\anaconda\lib\site-packages\selenium\webdriver\firefox\extension_connection.py", line 49, in __init__
    self.binary.launch_browser(self.profile)
  File "C:\Users\Moyp\dev\anaconda\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 68, in launch_browser
    self._wait_until_connectable()
  File "C:\Users\Moyp\dev\anaconda\lib\site-packages\selenium\webdriver\firefox\firefox_binary.py", line 103, in _wait_until_connectable
    raise WebDriverException("Can't load the profile. Profile "
WebDriverException: Message: Can't load the profile. Profile Dir: %s If you specified a log_file in the FirefoxBinary constructor, check it for details.
alecxe

Different selenium versions have compatibility issues with certain Firefox versions. Selenium 2.49 and Firefox 43 work together well.

Make sure you are really using selenium 2.49:

import selenium
print(selenium.__version__) 

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Setting up Selenium Firefox profile

Selenium/Firefox not working

How to setup firefox profile in selenium correctly?

selenium - unable to add browsec extension to firefox profile

Starting a specific Firefox Profile with Selenium 3

Selenium FireFoxDriver Profile changing after loading firefox?

Firefox has stopped working Selenium

Selenium 3.0 not working with Firefox 51.0.1

How to use both the Firefox Profile and Firefox options with Selenium in Java

Selenium headless not working with custom profile selection

Setting user data/profile in Selenium is not working. Selenium Python

Set Firefox profile to download files automatically using Selenium and Java

What is wrong with this selenium firefox profile to download file into customized folder?

Python Selenium - What are possible keys in FireFox webdriver profile preferences

Selenium Python Firefox webdriver : can't modify profile

How to set a firefox profile on a Selenium WebDriver remote with Ruby

Python Selenium: No such file or directory when loading Firefox Profile

Need the chrome equivalent of these (Firefox) browser profile settings in Selenium Java

How to use existing Firefox profile in Selenium C#?

Selenium - How to import all settings from an existing Firefox profile

Selenium firefox profile update download directory after creating webdriver

Python and selenium: how to change Firefox's profile multiple times

unable to set preferences for Firefox profile with Selenium (geckodriver 0.16)

Firefox profile setup throws error in protractor with selenium webdriver configuration

python proxy in selenium firefox headless not working

Python Selenium 4 - Firefox installAddon not working

Open new tab in Firefox and Chrome with Selenium is not working

Has Selenium IDE Stopped Working for firefox?

Selenium 2.53 or 2.48 not working in Firefox 48.0