I\'m trying to invoke a firefox browser using Selenium webdriver from below python code..
from selenium import webdriver
# Initializing the WebDriver for Firef
Selenium is looking for the directory, not the executable. You have to point to the directory where geckodriver.exe is placed. Do not include geckodriver.exe in the string argument.
Instead of
driver = webdriver.Firefox("C:\\selenium\\mozilla\\geckodriver.exe")
Do
driver = webdriver.Firefox("C:\\selenium\\mozilla")