I put the ‘geckodriver’ driver in ‘/data/notebook_files/’ but the code throws an error
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
firefox_options = Options()
driver = webdriver.Firefox(options=firefox_options)
Traceback (most recent call last):
at block 4, line 5
at /opt/python/envs/default/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py, line 176, in __init__(self, firefox_profile, firefox_binary, capabilities, proxy, executable_path, options, service_log_path, service_args, service, desired_capabilities, log_path, keep_alive)
at /opt/python/envs/default/lib/python3.8/site-packages/selenium/webdriver/common/service.py, line 81, in start(self)
WebDriverException: Message: 'geckodriver' executable needs to be in PATH.