Automation Question:
Download Questions PDF

Do you know what is the purpose of creating a reference variable- 'driver' of type WebDriver instead of directly creating a FireFoxDriver object or any other driver's reference in the statement Webdriver driver = new FirefoxDriver();?

Answer:

We can use the same variable to work with multiple browsers like ChromeDriver, IEDriver by creating a reference variable of type WebDriver.

Download Automation Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me how you can capture server side log Selenium Server?Tell me how can you switch back from a frame?