Search code examples
pythonfirefoxseleniumwebdrivertypeerror

TypeError: 'module' object is not callable ( when importing selenium )


i have problem when running this code :

>>> from selenium import webdriver
>>> driver = webdriver.firefox()
Traceback (most recent call last):
File "<pyshell#19>", line 1, in <module>
driver = webdriver.firefox()
TypeError: 'module' object is not callable

i have searched for the problem and i got some results. but unfortunately , they didn't work. So , how can i solve this?

thanks.


Solution

  • You have made a typo.

    webdriver.Firefox()
    

    Note the capital F.