I am using Jupyter Notebook My chrome version = 116.0.5845.141 (Official Build) (64-bit) my downloaded chromedrive = https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/116.0.5845.96/win64/chromedriver-win64.zip
and i saved the chromedrive .exe in C:\Program File (x86), but when I tired the below codes, the codes are not working
!pipe install selenium
from selenium import webdriver
PATH = "C:\Program File (x86)\chromedriver.exe"
driver = webdriver.Chrome(PATH)
driver.get("www.google.com")
Error = 'str' object has no attribute 'capabilities'
!pipe install selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
# Create a WebDriver instance
driver = webdriver.Chrome("./chromedriver")
# Open a website
driver.get("https://www.google.com")
Error = 'str' object has no attribute 'capabilities'
What can I do?
I expected that my targeted website will be opened by the chromedrive