This java project contains the essentials to get started with selenium quickly without having to go through the hassle of downloading individual dependencies one by one.
This project uses gradle , webdriver manager , selenium v4
- git: https://github.com/git-guides/install-git
- Java : https://www.java.com/en/download/help/download_options.html
- Gradle: https://docs.gradle.org/current/userguide/installation.html
-
clone this repo to your machine using git clone
-
To build the project: MacOS / Linux
./gradlew build
Windows
gradlew.bat build
-
To run the project: MacOS / Linux
./gradlew run
Windows
gradlew.bat run
Test cases are part of the /src/main/java/demo/TestCases.java file.
- Open TestCases.java file
- Create a copy of the function testCase01()
- Update the contents of the newly created method with your own custom logic
- open /src/App.java
- notice the TODO block:
//TODO: call your test case functions one after other here
- Call the newly created methods under the TODO block