Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Selenium by (55.6k points)
recategorized by

Can anyone explain the page factory in Selenium?

1 Answer

0 votes
by (119k points)

PageFactory class is an extension to page object design that is used to initialize the Page object or instantiate the page objects itself. PageFactory helps to initialize the Page class elements without using FindElement() or FindElements(). Annotations for elements can be created to provide descriptive names of target objects that improve code readability. In short, Page Factory is a better way to create object repository in the Page Object Model concept.

You can sign up for this Selenium training program by Intellipaat to learn Selenium.

You can watch this video on Selenium Tutorial to know more about Page factory:

Related questions

Browse Categories

...