Code Monkey home page Code Monkey logo

swagelabs_qa_test's Introduction

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/

swagelabs_qa_test's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.