PageFactory initializes Selenium page-object fields annotated with @FindBy, connecting WebDriver to named WebElement controls and reducing page-class authoring effort. section 7.1.2
Contact form page
A constructor calls PageFactory.initElements(driver, this), while @FindBy(id = "name") and similar annotations map fields to form controls. Methods such as enterName and clickSubmitButton expose interactions to the test.
