Page Object Model (POM)
1.. POM is a Design pattern which segregates selenium code based on pages.
Ex: Create a separate java class for the Login page, one more class for Home Page etc.
2.. A Page Object Model is a way of representing an application in a test framework. For every ‘page’ in the application, you create a Page Object to reference the ‘page’.
Page Factory
1.. Advanced concept ( POM + new features )or
Elements are identified using @FindBy or @FindBys Annotation
Initialism all the elements declared in Point#1 at a time.
( in POM, initialization happens on the fly )
PageFactory.initElements(driver,this);
2.. A Page Factory is one way of implementing a Page Object Model. In order to support the Page Object pattern, WebDriver’s support library contains a factory class.