Before you do this activity, please complete the previous activity.
-
This repository's structure is based on the Page Object Model structure.
-
In the
com.training.pom.pagespackage, you will find 2 files:AlertsPage.javaandBasePage.javaBasePage.javacontains all the common functions and elements between all webpages.AlertsPage.javarepresents the elements in the Robots Alerts Page.
-
In the
com.training.pom.testspackage, you will find 2 files:AlertsTest.javaandBaseTest.javaBaseTest.javacontains all the common testing functions for all tests.AlertsTest.javacontains all the tests that apply to the Alerts Page.
-
The Project Root contains a
testng.xmlwhich is where you will be specifying which tests to run. -
Keeping this file structure in mind, read the following instructions to complete the activity.
-
Fork this repository
-
Clone your fork
-
In the
com.training.pom.pagespackage, create the following two files with the specified content:iframePage.java: This should represent all the elements in the Robots iFrames Page.iframeceptionPage.java: This should represent all the elements in the Robots iFrameception Page.
-
In the
com.training.pom.testspackage, create the following two files with the specified content:iframeTest.java: This should contain any 2 tests foriframePage.java. The tests you write are up to you as long as they are valid.iframeceptionTest.java: This should contain any 2 tests foriframeceptionPage.java. Once again, the tests you write are up to you as long as they are valid.
-
Edit the
testng.xmlto include the two test classes you've written. -
If you want to see the solution, you can see check the
solutionbranch.