PageFactory is a Selenium class which provides a means to instantiate a page object model/pattern by initializing all defined web elements
The PageFactory Class in Selenium is an extension to the Page Object design pattern. It is used to initialize the elements of the Page Object or instantiate the Page Objects itself. It is used to initialize elements of a Page class without having to use FindElement
or FindElements
.