- How do you initialize a PageObject implemented with PageFactory?
PageFactory.initElements(driver, pageObjectClass).
- Using which class can we implement methods to validate whether the page is loaded?
LoadableComponent.
- Which By class methods are supported by @FindBy?
ID, Name, ClassName, TagName, Link, PartialLinkText, CSS Selector, and XPATH.
- While using PageFactory, if you name the WebElement variable name by the same ID or name attribute, then you don't need to use the @FindBy annotation: True or false?
True. You can declare the WebElement variable with the same name as the value of id or name attribute, PageFactory will resolve it without using the @FindBy annotation