TypeError: 'module' object is not callable

118 views
Skip to first unread message

salticidae

unread,
Aug 9, 2021, 6:28:51 AM8/9/21
to Selenium Users

Hi!

I am using Selenium to click a bottom in a web page. And I got the TypeError: 'module' object is not callable. I tried some ways that I found on stackflow and reddit and I still can not figure it out.

Here are my codes:

def click_search(url):

from selenium import webdriver

driver=webdriver.chrome()

driver.get(url)

botton=driver.fin_element_by_id("quryBtn")

botton.click()

Traceback:

from selenium import webdriver

TypeError: 'module' object is not callable

I did some search and tried some ways like:

from selenium.webdriver import webdriver

or

driver=webdriver.webdriver.chrome()

or

from selenium.webdriver.support.ui import WebDriverWait

None of them works. Could you guys help me please?

Reply all
Reply to author
Forward
0 new messages