PageFactory
PageFactory copied to clipboard
PageFactory in Selenium Webdriver
Page Factory and Page Generator in Page Object Model
About
-
A Sample project using Page Factory, Page Generator, Chain of Invocations, and JAVA Generics techniques and patterns.
-
These techniques will reduce code repetition and duplicated code blocks.
-
In this way, we can easy to understand, easy to read, and easy to maintain our automation projects.
-
The PageFactory class helps us to write more clean and maintainable codes. First, we need to find web elements by using the below format (@FindBy annotation) in page classes.
-
PageFactory in Selenium Webdriver Article Link: https://www.swtestacademy.com/page-factory-selenium-webdriver/
Table of contents
- Title
- About
- Table of contents
- Build
- Contributing / Reporting issues
- License
Build
mvn clean install