Coder Social home page Coder Social logo

vincentvusi / saucedemowebsitetesting Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 232 KB

Selenium Framework for the website saucedemo.com

Home Page: https://www.saucedemo.com/

Java 7.03% HTML 73.68% JavaScript 8.38% CSS 10.75% Gherkin 0.17%
selenium-framework selenium-framework-for-beginners selenium-java selenium-webdriver selenuim testing saucedemo swag-labs

saucedemowebsitetesting's Introduction

SauceDemoWebsiteTesting

Selenium 4 WebDriver Example for saucedemo.com

Overview

This repository contains a simple example of using Selenium WebDriver to automate interactions with a web application. The code is organized into several classes, each representing a different page or step in a fictional e-commerce checkout process.

Project Structure

LoginPage: Handles interactions with the login page, providing methods to enter credentials and log in. InventoryPage: Represents the inventory page, offering methods for interacting with various elements on the page, such as adding items to the cart or navigating to different sections. CartPage: Represents the shopping cart page, providing methods to remove items from the cart and proceed to checkout.

CheckoutStepOnePage: Represents the first step of the checkout process, allowing users to enter their information.

CheckoutStepTwoPage: Represents the second step of the checkout process, providing a method to complete the checkout. Prerequisites

Before running the code, make sure you have the following installed:

Java Development Kit (JDK)

Selenium 4

latest version of TestNG as of 21 December 2023

Clone this repository:

BASH :

Copy git clone https://github.com/VincentVusi/SauceDemoWebsiteTesting.git

Navigate to the project directory:

BASH :

Copy cd SauceDemoWebsiteTesting

Open the project in your preferred Java IDE.

Run the main class or individual test classes to execute the Selenium WebDriver automation.

Usage

Feel free to use, modify, and extend this example for your own Selenium WebDriver projects. Each class has methods for specific interactions with web elements, making it easy to integrate into your testing framework.

Screenshort of the website used in this example https://www.saucedemo.com/

image

Java docs

Find java docs for the project on a folder written java docs
Screenshot 2023-12-21 120433
License

This project is licensed under the MIT License.

saucedemowebsitetesting's People

Contributors

vincentvusi 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.