1

Havent used selenium since last summer and am struggling to even open a webpage now.

from selenium import webdriver
PATH = "D:\chromedriver_win32\chromedriver.exe"
driver = webdriver.Chrome(PATH)
driver.get("https://www.reddit.com/")
print(driver.title)

the error that appears: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome(PATH)

Unsure what to do so help would be appreciated

Noah Riley
  • 65
  • 4

0 Answers0