<<Previous Question <<1500 Plus Interview Questions>> Next Question>>
Is WebDriver a class or interface?
Watch the answer for this Selenium Interview Question in a detailed manner in the below youtube video:
Note: Don’t forget to subscribe to my Youtube channel here: Click here
Notes used for explanation in this Youtube video are provided after the video:
Notes used in the above Youtube Video:
WebDriver is an interface.
Add this points to add more value to this question:
-
- > FirefoxDriver, ChromeDriver, InternetExplorerDriver, SafariDriver, OperaDriver, EdgeDriver, RemoteWebDriver and EventFiringWebDriver are the classes which are implementing this WebDriver interface.
Next Steps:
- > For more Selenium Interview Questions and answers, continue to the next post (Click on Next Post link below)
- > Check complete Selenium Interview Questions list here (Click here)
Please leave your questions/comments/feedback below.
Happy Learning ?
<<Previous Question <<1500 Plus Interview Questions>> Next Question>>
On a mission to contribute to the Software Testing Community in all possible ways.
Hi Arun,
WebDriver is an interface, Then what is the driver?
WebDriver driver = new ChromeDriver();
here, WebDriver is an interface.
ChromeDriver is the classes which is implementing this WebDriver interface.
Then what is the driver?
Interface didn’t create any object.
Here in this statement, new operator creates the object.
new operator is creating the object for ChromeDriver class and assigning it to the driver variable of WebDriver interface.
Hope you understood now.
Let me know if you have any further questions.