I am getting the error "Message: 'geckodriver' executable needs to be in PATH".
I am trying to use selenium, here is my code:
from selenium.webdriver.firefox.options import Options from shutil import which from pyvirtualdisplay import Display
with Display():
opts = Options()
opts.binary = which("firefox")
opts.add_argument("--headless")
driver = webdriver.Firefox(firefox_options=opts, log_path = "geckodriver.log")
Any ideas? What should I do?