title: AttributeError: module 'selenium.webdriver' has no attribute 'Firefox'
body: <p>Complete rookie here; just trying to open Firefox with this bit of code in a program results in AttributeError as specified in the subject:</p>
  
  <pre><code>from selenium import webdriver
  from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
  
  binary = FirefoxBinary('C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe')
  browser = webdriver.Firefox(firefox_binary=binary)
  </code></pre>
  
  <p>Oddly, entering the code directly in the Python shell line by line works fine. How do I fix it?</p>
  
  <p>Here's the code line by line in IDLE:</p>
  
  <pre><code>Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
  Type "copyright", "credits" or "license()" for more information.
  &gt;&gt;&gt; from selenium import webdriver
  &gt;&gt;&gt; from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
  &gt;&gt;&gt; binary = FirefoxBinary('C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe')
  &gt;&gt;&gt; browser = webdriver.Firefox(firefox_binary=binary)
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Running it opens the browser as intended.</p>
  
  <p>Here's the traceback:</p>
  
  <pre><code>Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
  Type "copyright", "credits" or "license()" for more information.
  &gt;&gt;&gt; 
  ============== RESTART: C:\Users\Paweł\MyPythonScripts\email.py ==============
  Traceback (most recent call last):
    File "C:\Users\Paweł\MyPythonScripts\email.py", line 4, in &lt;module&gt;
      from selenium import webdriver
    File "C:\Users\Paweł\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\__init__.py", line 18, in &lt;module&gt;
      from .firefox.webdriver import WebDriver as Firefox  # noqa
    File "C:\Users\Paweł\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\firefox\webdriver.py", line 19, in &lt;module&gt;
      import http.client as http_client
    File "C:\Users\Paweł\AppData\Local\Programs\Python\Python35-32\lib\http\client.py", line 71, in &lt;module&gt;
      import email.parser
    File "C:\Users\Paweł\MyPythonScripts\email.py", line 8, in &lt;module&gt;
      browser = webdriver.Firefox(firefox_binary=binary)
  AttributeError: module 'selenium.webdriver' has no attribute 'Firefox'
  &gt;&gt;&gt;
  </code></pre>