Skip to content

The repository contains task Selenium WebDriver and TestNG projects for Automation Testing of web

Notifications You must be signed in to change notification settings

ahmedmohamedreda/swagelabs_QA_test

Repository files navigation

Selenium - Page Object Model

What is it

Selenium POM (Page Object Model) is a Java framework that provides ability to describe your web application as a hierarchy of models. It also adds helper methods for most common functions such us double click, or get value.

Requirements

• Java 8

Dependencies

• Maven
• Selenium 

Currently supported browsers are

• chrome
• firefox
• headless chrome

Updations and Implementations:

• the website that used: https://www.saucedemo.com/ 
• Create project maven with POM (Page Object Model)
• create the page, tests, and utilities packages
• Create pages for locators and actions
• Create tests for locators and actions
• Create utilities to help capture screen case when the test case failed.
• Retry failed test cases.
• fixed errors on the test script.
• upload the project on GitHub

Using selenium webdriver automate the following scenario:

1- Login with credentials provided by website (https://www.saucedemo.com/)
2- Sort the procduct from low to hige price and add it to cart
3- Proceed to checkout
4- Add required data in your information screen
5- Complete checkout process
6- Assert on completion of order

Installing Drivers

Whichever browser you choose to run your automation on, you need to make sure to install the latest driver for that browser compatible with your target version of Selenium WebDriver.

Here are the official homes for several of the major drivers:

• ChromeDriver - https://sites.google.com/a/chromium.org/chromedriver/downloads
• IEDriver - http://selenium-release.storage.googleapis.com/index.html?path=2.53/

About

The repository contains task Selenium WebDriver and TestNG projects for Automation Testing of web

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published