Is Selenium WebDriver an Interface?

Is Selenium WebDriver an Interface?

Selenium WebDriver is an interface.

For those unfamiliar with the term, an interface is a class which cannot be instantiated but can be implemented by classes.

Selenium WebDriver is implemented by ChromeDriver for example, meaning that you can create an instance of ChromeDriver and interact with it as you would with any other object, however your code will not be compilable when trying to create a pure WebDriver object.

Leave a reply

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

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.