DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver=webdriver.Chrome(executable_path="C:\chromedriver.exe")
code is: from selenium import webdriver from selenium.webdriver.chrome.service import Service
driver=webdriver.Chrome(executable_path="C:\chromedriver.exe") driver.get("https://www.google.com/")