Answers

Question and Answer:

  Home  Automation

⟩ 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();?

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

 201 views

More Questions for you: