from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
# Create the Service object with the correct path to chromedriver
chrome_service = Service(executable_path='/tmp/chromedriver/chromedriver-linux64/chromedriver.exe')
options = webdriver.ChromeOptions()
options.add_argument("--headless")
options.add_argument("--disable-extensions")
options.add_argument("--disable-dev-shm-usage")
options.add_argument("--no-sandbox")
options.add_experimental_option("prefs",{"download.default_directory":"/databricks/driver"})
# Create the WebDriver instance
driver = webdriver.Chrome(service=chrome_service, options=options)
However, I keep getting this error message "Unable to locate or obtain driver for chrome" in the last line where I run webdriver.Chrome()
Does anyone know what the problem is?