Skip to content

Selenium WebDriver page object model in Java using TestNG with Mercury tours web sample application

Notifications You must be signed in to change notification settings

sbittla/selenium-page-object-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Selenium WebDriver page object model in Java using TestNG with Mercury tours web sample application

Pre-requisites:

JVM
Maven

Tested with

Java(TM) SE Runtime Environment (build 1.8.0_192-b12) - Java HotSpot(TM) 64-Bit Server VM (build 25.192-b12, mixed mode)
Apache Maven 3.5.2

Download git hub project and run the below command from project home folder - from the location where pom.xml is located.

mvn clean install

After the successfull execution of the test cases. Run the below command to open the reports and screenshots.

To open the reports. Run the below command

open target/surefire-reports/index.html

It will display all the test cases and its status

To open the screenshots

open screenshots/<imagename>.png

Images are generated with the time stamp.

newtours site is down. you can leverage the curremnt frame work on https://onwardflightticket.com. This is just for practice purose only.