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.
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
Java Development Kit (JDK)
Selenium 4
latest version of TestNG as of 21 December 2023
Copy git clone https://github.com/VincentVusi/SauceDemoWebsiteTesting.git
Navigate to the project directory:
Copy cd SauceDemoWebsiteTesting
Run the main class or individual test classes to execute the Selenium WebDriver automation.
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.
This project is licensed under the MIT License.