Skip to main content

Posts

Showing posts with the label Testng

Creating a fully functional page object model automation framework with Selenium in 1 hour

In this tutorial we will check how to create a simple Selenium/ Testng page object model framework with reporting and logging capabilities. For this I'm using Intellij idea IDE Community version because of its amazing debugging capabilities. Also I'm using Maven, Selenium with Testng with log4j. Let's begin, 1. Create a Maven project using intellij IDE. 2. Prepare the project structure as follows, There should be 4 folders/packages to handle functions, pages, resources and test cases.  Before that delete the existing auto org.example folders in both main and test folders. Then created following folders as below. 3. Now we need to download all the necessary packages we need to use in this project. Paste following mvn dependencies in your pom.xml file within <dependencies></dependencies> tags. before that remove this junit dependency which is already coming automatically because we don't need it. <dependency> <groupId> junit </groupId> ...