No Object Repository facility in Selenium WebDriver, It is a Programming Interface
UFT has built-in Object Repository facility
Under this POM, for each web page has corresponding Page Class
Page Class find the web elements of web page and also contains customized commands which perform actions on those web elements
Advantages of Page Object Model
i. Reusability of Elements. reduces code size
ii. Centralized maintanence of Elements
Implement Page Object Model
In this approach all pages of the application and user actions on the web elements are maintained as methods inside class file/s, by importing the page class we create Test cases.
Step 1: Create Page Class/es for your Web Pages of the Application
Step 2: Create Test Case class/es by importing Page class/es