HomeSelenium

Selenium Interview Question 17 – Is WebDriver a class or interface?

Selenium Interview Question 17 – Is WebDriver a class or interface?

<<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 🙂

About Me > Arun Motoori

<<Previous Question       <<1500 Plus Interview Questions>>       Next Question>>

On a mission to contribute to the Software Testing Community in all possible ways.

If you like this article, share it on LinkedIn using the below button:

Comments (2)

  • 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.

    Reply
    • Author

      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.

      Reply

Leave a Reply to Arun Motoori Cancel reply

Your email address will not be published. Required fields are marked *