I have this code:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
print("Sample test initiated")
#driver selection
driver = webdriver.chrome(r"/Users/ananyarai/Downloads/chromedriver.exe")
It causes the following error:
"/Users/ananyarai/PycharmProjects/pythonProject1/venv/bin/python "/Users/ananyarai/PycharmProjects/pythonProject1/Demo /Sample 2.py"
Traceback (most recent call last):
File "/Users/ananyarai/PycharmProjects/pythonProject1/Demo /Sample 2.py", line 7, in <module>
driver = webdriver.chrome(r"/Users/ananyarai/Downloads/chromedriver.exe")
TypeError: 'module' object is not callable"
Sample test initiated