Pages

Selenium with Interfaces

Selenium with Interfaces?

Before going to how interfaces implemented in the Selenium web driver concept, learn the topic of interfaces in the previous post.

Just observe below diagram:



selenium with Interfaces
selenium with Interfaces

By seeing the above diagram, we got the reason why we are writing the below statement:

WebDriver driver = new ChromeDriver();

Finally, we can conclude below points:

1) WebDriver is an Interface and it contains final variables and abstract methods

2) Implementation of those WebDriver methods are provided in driver class i.e., ChromeDriver() class , FirefoxDriver() class , InternetExplorerDriver() class , SafariDriver() class ............

Note: Every driver (chrome, firefox, IE,.....) has its own implementation.

Please comment below to feedback or ask questions.

No comments:

Post a Comment

Please comment below to feedback or ask questions.