What kind of type is WebDriver in Java?
QuizEasyJava onlyAsked in: Accenture, Infosys, Wipro
In Selenium Java you usually write WebDriver driver = new ChromeDriver();. What is WebDriver?
- An interface, implemented through RemoteWebDriver by ChromeDriver, FirefoxDriver and the other drivers
- An abstract class that ChromeDriver extends directly
- A concrete class you could create with new WebDriver()
- An annotation that marks a test as a browser test
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.