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()
![Silveryaroma_0-1699524392121.png Silveryaroma_0-1699524392121.png](/t5/image/serverpage/image-id/4764i949D7E41513A35D1/image-dimensions/845x32/is-moderation-mode/true?v=v2)
Does anyone know what the problem is?