Class PageFactory
java.lang.Object
nl.detestbaas.playwright.annotations.PageFactory
The PageFactory class is responsible for initializing annotated locators in a page object.
-
Constructor Summary
ConstructorsConstructorDescriptionA factory class for creating locators based on different strategies. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinitAnnotatedLocators(com.microsoft.playwright.Page page, Object pageObject) Initializes annotated locators in a page object.
-
Constructor Details
-
PageFactory
public PageFactory()A factory class for creating locators based on different strategies.
-
-
Method Details
-
initAnnotatedLocators
Initializes annotated locators in a page object.- Parameters:
page- the page object to initialize locators forpageObject- the instance of the page object to initialize locators on
-