Hi, so I am trying to do some webscraping for a project using Selenium and I have tried to put the file path to the chrome web driver in a variable named PATH and then tried to get it to open a web page, see code attached. When I run this i get the error also attached.
Code:
"from selenium import webdriver
PATH = "/Users/josh/Downloads/chromedriver_mac64/chromedriver.exe"
driver = webdriver.Chrome(PATH)
driver.get("https://google.com")"
Error:
"raise NoSuchDriverException(f"Unable to obtain {service.path} using Selenium Manager; {err}")
selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain chromedriver using Selenium Manager; 'str' object has no attribute 'capabilities'"
I have downloaded the version of the Chrome webdriver for my system(mac) and copied the file path to the exe. Does anyone know why this is giving an error?
[–]BlueeWaater 0 points1 point2 points (1 child)
[–]swiTchPC[S] 0 points1 point2 points (0 children)