I wanted to use Selenium with all the 3 Browsers, So, I wrote the following different codes:
FirefoxDriver driver = new FirefoxDriver();
ChromeDriver driver = new ChromeDriver();
InternetExplorerDriver driver = new InternetExplorerDriver();
With Chrome and IE it works fine, but it throws the following error with firefox:
"The geckodriver.exe file does not exist in the current directory or in a directory on the PATH environment variable"
Why does firefox requires geckoDriver?