title: Type error: " 'module' object is not callable " in attempt to run python test file
body: <p>I'm writing my first selenium python test and I'm stumped with this error. As I understand, the problem is variable/ class names, but I can't solve it.</p>
  
  <pre><code>    from selenium import webdriver
      from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
      import time, unittest
      binary = FirefoxBinary(r'C:\Program Files (x86)\Mozilla Firefox\firefox.exe')
      browser = webdriver.Firefox(firefox_binary=binary)
  
      def is_alert_present(wd):
          try:
              wd.switch_to_alert().text
              return True
          except:
              return False
  
      class test_add_group(unittest.TestCase):
          def setUp(self):
              self.wd = webdriver()
              self.wd.implicitly_wait(60)
  
          def test_test_add_group(self):
              success = True
              wd = self.wd
              wd.get("http://localhost/addressbook/")
              wd.find_element_by_name("user").click()
              wd.find_element_by_name("user").clear()
              wd.find_element_by_name("user").send_keys("admin")
              wd.find_element_by_name("pass").click()
              wd.find_element_by_name("pass").clear()
              wd.find_element_by_name("pass").send_keys("secret")
  
  
          def tearDown(self):
              self.wd.quit()
  
      if __name__ == '__main__':
          unittest.main()
  </code></pre>
  
  <p>Error: </p>
  
  <blockquote>
    <p>self = 
        def setUp(self):
        self.wd = webdriver()
        TypeError: 'module' object is not callable</p>
  </blockquote>