This repository is dedicated to practicing Selenium with Java and covers the following key concepts:
- Locating Strategies
- Page Object Model
- Data-Driven Framework
- TestNG Framework
Before diving into Selenium, ensure your system is equipped with the necessary prerequisites:
- Download and Install Java SE Development Kit version 8+ Java SE Development Kit
- Add the
JAVA_HOME
Path Environment Variable, e.g.,C:\Program Files\Java\jdk-1.8
- Add
%JAVA_HOME%
&%JAVA_HOME%\bin
to the existing Java path environment variable - Download and Install IntelliJ IDEA
- Download and Install Chrome WebDriver
Clone this repository to your local machine using Git:
git clone https://github.com/GameAnalyst-Hamza/Selenium-Practice.git
Checkout to Project directory:
cd Selenium-Practice
Switch branch from main to Branch-POM or Branch-DDF-TestNG
git checkout PageObjectModal
OR
git checkout DataDrivenFramework
Note:
PageObjectModal
contains reference code forLocating Strategies
andPage Object Modal
DataDrivenFramework
contains reference code forData Driven Framework
andTestNg Framework