1 Answer

0 votes
by
Webdriver driver = new FirefoxDriver();

1

Webdriver driver = new FirefoxDriver();

‘WebDriver‘ is an interface and we are creating an object of type WebDriver instantiating an object of FirefoxDriver class.
...