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>Try:</p>

<pre><code>from selenium import webdriver

driver = webdriver.Firefox()
driver.get('http://google.com')
</code></pre>

python selenium selenium-webdriver