Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 689
Saleh_M Avatar asked May 18 '13 16:05

Saleh_M


1 Answers

You have made a typo.

webdriver.Firefox()

Note the capital F.

like image 91
Tadgh Avatar answered Sep 24 '22 09:09

Tadgh