Friday, June 8, 2018

Create Selenium WebDriver using Java Factory Pattern

Hi Friends,

In Factory pattern, we create an object without exposing the code to the client and refer to a newly created object using a common interface.

This is widely used java pattern for creating the object. 

Here is the UML diagram for creating the webDriver object. 




Click here to download the code from GitHub repo

Note: This is just an idea. Future enhancement can be done based on requirement. 


No comments: