Page Object Model in Selenium | Selenium Tutorial for Beginners | G C Reddy |
Автор: G C Reddy Software Testing
Загружено: 2021-03-04
Просмотров: 714
https://gcreddy.info/page-object-mode...
What is Object Repository in Automated Testing?
It is a storage place for storing Objects/Elements information.
Selenium Object Repositories
Selenium doesn't have a built-in Object Repository facility, but we can create Object Repositories in selenium using the Page Object Model.
What are the Advantages of Object Repositories in Automated Testing?
i. Reusing Objects/Elements info
ii. Maintenace of Objects/Elements
Page Object Model is an Object/Element design pattern to create Object Repositories
Under this POM, container classes for web elements are created that behave as Object Repositories.
We can create POM in two ways:
1. POM without Page Factory
2. POM with Page Factory
Under this POM, for each web page there should be a corresponding page class, this page class finds the web elements of the web page and also we may create customized commands that perform actions on web elements.
Implementing Page Object Model
In this approach, all pages of the applications and User actions on web elements are maintained as methods, by importing the page class we can create test cases.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: