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.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?