I am trying to use Selenium with Python 3. I installed Selenium and Chrome Webdriver. Pip was pre-installed with Python 3. However, i am getting this error message. I literally started learning this language yesterday, so please be kind if the error is silly.
Code
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.google.com/")
driver.close()
Error message
"C:\Users\...\PycharmProjects\untitled\venv\Scripts\python.exe"
"C:/Users/.../.PyCharmCE2018.1/config/scratches/Hello World.py"
Traceback (most recent call last):
File "C:/Users/.../.PyCharmCE2018.1/config/scratches/Hello World.py", line 4, in <module>
driver = webdriver.Chrome()
AttributeError: module 'selenium.webdriver' has no attribute 'Chrome'
Process finished with exit code 1
Any help will be appreciated.Thanks.