I have seen almost everybody using the statement WebDriver driver=new FirefoxDriver();
here we have created an instance of FirefoxDriver
class having t
As you mentioned in your question that know that Firefox is the only browser you are gonna use in your selenium script then there is no constraint in using the following line of code :
FirefoxDriver driver = new FirefoxDriver();
Here you can find a detailed discussion on What is the difference between ChromeDriver and WebDriver in selenium?