Following some tutorials on Selenium, I installed the geckodriver. In order to run a simple code on python to run Selenium, I have to specify this path in the c
You can use FirefoxBinary as described here:
Setting path to firefox binary on windows with selenium webdriver
To set the custom path to Firefox you need to use FirefoxBinary:
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary('F:\FirefoxPortable\Firefox.exe')
driver = webdriver.Firefox(firefox_binary=binary)