Not able to open Firefox using Selenium Python
<p>I am getting an error when trying to open <code>Firefox</code> with <code>Selenium</code>. I tried this:</p>

<pre><code>from selenium import webdriver
from selenium.webdriver.firefox.webdriver import FirefoxProfile

profile = FirefoxProfile('/home/usr/.mozilla/firefox')
driver = webdriver.Firefox(profile)
</code></pre>

<p>The error was:</p>

<pre><code>selenium.common.exceptions.WebdriverException: Message: Can't load the
profile. Profile Dir: '...../webdriver-py-profilecopy' If you specified 
a log_file in the FirefoxBinary constructor, check it for details.
</code></pre>

<p>I think you are using selenium 2.53.6</p>

<p>The issue is compatibility of firefox with selenium, since firefox>= 48 need Gecko Driver(<a href="https://github.com/mozilla/geckodriver" rel="nofollow">https://github.com/mozilla/geckodriver</a>) to run testcases on firefox. or you can downgrade the firefox to 46..from this link <a href="https://ftp.mozilla.org/pub/firefox/releases/46.0.1/" rel="nofollow">https://ftp.mozilla.org/pub/firefox/releases/46.0.1/</a></p>

python selenium selenium-webdriver