I am new to selenium. I have downloaded a portable Firefox and trying to use it in my code but haven't had any success.
Here's the code I am using:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary('path/to/installed firefox binary')
browser = webdriver.Firefox(firefox_binary=binary)
Here's the exception I am getting:
WebDriverException: Message: 'geckodriver' executable needs to be in PATH.