PageFactory in selenium

PageFactory is an extended support to POM (PageObjectModel), used to locate webelement in adifferent manner than mentioned here. Before we learned to declare and locate an WebElement as below : WebElement txt_GoogleSrch = driver.findElement(By.id(“q”)); Using PageFactory @FindBy @FindBy(ID = “q”) private WebElement txt_GoogleSrch; or this can even read as, @FindBy(how = How.ID, using = “q”)…