Can't install Selenium WebDriver with Python
<p>I am trying to install Selenium WebDriver with Python on my Mac. I used this command:</p>

<pre><code>sudo easy_install selenium
</code></pre>

<p>After that, I tried the following simple test:</p>

<p>python</p>

<pre><code>from selenium import webdriver
driver = webdriver.Firefox()
</code></pre>

<p>And I got the following error. What am I doing wrong?</p>

<blockquote>
  <p>Traceback (most recent call last):
    File "", line 1, in 
    File "/Library/Python/2.7/site-packages/selenium-3.0.0.b3-py2.7.egg/selenium/webdriver/firefox/webdriver.py", line 68, in <strong>init</strong>
      self.service.start() File "/Library/Python/2.7/site-packages/selenium-3.0.0.b3-py2.7.egg/selenium/webdriver/common/service.py", line 71, in start
      os.path.basename(self.path), self.start_error_message)
  selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH. </p>
</blockquote>

<p>If you call a selenium driver without any arguments, the path to the webdriver executable must be in the system PATH environment variables.</p>

<p>Alternatively, you can specify the path explicitly as such:</p>

<pre><code>driver = webdriver.Firefox("path/to/the/FireFoxExecutable")
</code></pre>

python selenium-webdriver