July 2018
Intermediate to advanced
280 pages
7h 27m
English
There will be many situations where you need to use PageObjects within a PageObject. Let's analyze that using a scenario on the All Posts page. When you click on Add New to add a new post, the browser actually navigates to a different page. So, you have to create two PageObjects, one for the All Posts page and another for the Add New page. Designing your PageObjects to simulate the exact behavior of our target application will keep things very clear and independent of each other. You may be able to navigate to the Add New page in several different ways. Creating a PageObject of its own for the Add New page and using it wherever needed will make your test framework adhere to good object-oriented fundamentals, ...
Read now
Unlock full access