Module 5 | Page object model
The Page Object Model concept is used by developers across the industry. Quantum supports this model. Consider using it in your testing.
When we write tests, we already have steps that can be reused in multiple test cases. Now, we will extend this to the page level.
Every page in the app is “visited” by multiple tests. An account page may be tested for a customer changing contact info, performing transactions, and more. The idea is that each page contains a number of elements and actions that can be done with these elements. If we map these, then we can call and reuse them whenever we need. The place where we do the mapping is the page object class, which we will create for each page in the application.
Resources
- Presentation: 05 Page Object Model.pptx
- Training project: https://github.com/Project-Quantum/Training-Course
- Assignments: https://github.com/Project-Quantum/TrainingAssignments (try not to peek!)