Why not WebDriver driver = new WebDriver()
In our selenium automation scripts, we use WebDriver driver = new FirefoxDriver(); or WebDriver driver = new ChromeDriver(); & so on… But did we ever got a question, why? or why not WebDriver driver = new WebDriver(); ? Let’s discuss about the why & why not :D why not WebDriver driver = new WebDriver();? Answer…