1.

Solve : AttributeError: module 'selenium.webdriver' has no attribute 'webdriver'?

Answer»

I've installed selenium correctly as well as the chromium WEBDRIVER for selenium and I keep getting the following error

Traceback (most recent call last):
File "C:/Users/Turtle/PycharmProjects/SpotifyWebscraper/seleniumTest.py", line 3, in
driver = webdriver.chrome()
TypeError: 'module' OBJECT is not callable
here is my code:

from selenium import webdriver

driver = webdriver.chrome()
driver.get("HTTS://www.google.com")

print(driver.title)
print(driver.current_url)

driver.quit
I've checked in the folders correctly and the files SEEM to be in the right positions:

C:\Users\Turtle\AppData\Local\Programs\Python\Python38\Lib\site-packages\selenium-4.0.0a3-



Discussion

No Comment Found