An open API service indexing awesome lists of open source software.

https://github.com/raadxrahman/selenium-java-junit-automation

Automating a few webforms and scraping data using JUnit & Selenium in this project.
https://github.com/raadxrahman/selenium-java-junit-automation

automation gradle java junit selenium

Last synced: about 1 year ago
JSON representation

Automating a few webforms and scraping data using JUnit & Selenium in this project.

Awesome Lists containing this project

README

          

# Automating and Scraping Webpages using Junit & Selenium
In this project, I have used JUnit and Selenium to automate two webforms and scrape data from one web table.

## Technologies Used

* Java
* Selenium-Java (https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java
implementation("org.seleniumhq.selenium:selenium-java:4.31.0"))
* JUnit Jupiter API (https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.1"))

## Prerequisites

* Java Development Kit (JDK) 8 or later
* IntelliJ IDEA (or your preferred Java IDE)
* Gradle (if you want to use the provided Gradle build)

## Setup Instructions

1. **Clone the repository:**

```bash
git clone
cd
```

2. **Open the project in IntelliJ IDEA:**

* Open IntelliJ IDEA.
* Select "Open or Import Project."
* Navigate to the project directory and select the `build.gradle` file (if you are using Gradle) or the project directory itself.
* IntelliJ IDEA will import the project.

## Webform Automations

### 1. Automating The https://www.digitalunite.com/practice-webform-learners Webform!
#### Test Report
![image](https://github.com/user-attachments/assets/fdf3fb09-de0f-4f59-90b9-b0b837112270)
#### Demonstration
Click on the video. (Automation part slowed down to 0.5x).
[![Watch the video](https://github.com/raadxrahman/JunitAutomation/blob/master/src/test/resources/Demonstration/img.png)](https://youtu.be/_ZRsSk_uDWA)

### 2. Automating The https://demo.wpeverest.com/user-registration/guest-registration-form/ Webform!
#### Test Report
![image](https://github.com/user-attachments/assets/895a72bc-58d7-426c-ae36-ed3a7e0dd322)
#### Demonstration
Click on the video. (Automation part slowed down to 0.5x).
[![Watch the video](https://github.com/raadxrahman/JunitAutomation/blob/master/src/test/resources/Demonstration/img_1.png)](https://youtu.be/TqxrcQxnhMI)

## Automated Webscraping
### 1. Automated Web Scraping from https://dsebd.org/latest_share_price_scroll_by_value.php Webtable and Saving Data in .txt file!
#### Test Report
![image](https://github.com/user-attachments/assets/4f756a1a-6167-4c8c-bc8c-326810f325e4)
#### Demonstration
Click on the video. (Automated Scraping part sped up).
[![Watch the video](https://github.com/raadxrahman/JunitAutomation/blob/master/src/test/resources/Demonstration/img_2.png)]( https://youtu.be/XFc1viAzUvk)

## Author

Mahbubur Rahman