Can anyone help me to differentiate between POM and PageFactory
The object of Page is an OOPs class that functions as an interface for the web page of your application under test. It is a design pattern that is commonly used in Selenium for Test Case Automation. This POM’s Page class has web factors and strategies for interacting with web elements.
PageFactory is a class in Selenium WebDriver that helps with Page Object of Design patterns. The annotation ‘@FindBy’ is used in this case. The ‘initElements’ method is used to set up the web’s elements. For more differences check the blog