from selenium import webdriver
driver = webdriver.chrome("F:\\chromedriver.exe")
driver.get("https://www.nvidia.in/graphics-cards/geforce/pascal/buy/")
In python, letter 'c' will be in upper case in the function chrome().
INCORRECT
import webdriver
driver = webdriver.chrome("F:\\chromedriver.exe")
PROPER:
from selenium import webdriver
import selenium
driver = webdriver.Chrome("F:\\Chromedriver.exe")
from selenium import webdriver
import selenium
driver = webdriver.Chrome()
driver.get("http://www.python.org")
C should be capital in webdriver.Chrome()
Also, the path for driver is not required. The driver is already installed on the computer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With