Quick Form Fill Automation is a Python automation that reads a database from an Excel file, opens a browser using Selenium, and automatically registers products. This project aims to save time and reduce errors in the product registration process.
- Key Features
- Demonstration Video
- How It Works
- Tools and Technologies Used
- Project Dependencies
- Prerequisites
- Installation Instructions
- Product Data Reading: The automation is capable of reading product data from an Excel file.
- Browser Initialization: It initiates a web browser (such as Chrome or Firefox) using Selenium.
- Automatic Form Filling: The automation automatically fills in the fields of a product registration form.
- Process Automation: By automating the form filling process, it saves time and reduces errors, making the process more efficient and reliable.
quick-form-fill-demonstration-video.mp4
- Initial Setup: The automation utilizes Selenium, a web browser automation tool, and pandas, a Python library for data manipulation, to perform tasks.
- Browser Initialization: Firstly, the script initiates a web browser (Chrome, in this case) using Selenium's webdriver.
- Accessing the Page: The browser navigates to the local URL where the product registration form is hosted
http://localhost:3000/
. - Reading Data: Product data is read from an Excel file named
data.xlsx
using the pandas library and stored in a DataFrame. - Product Iteration: For each row in the DataFrame, the script fills in the fields of the product registration form with the corresponding data.
- Submitting Data: After filling the fields with the data for each product, the script submits the registration form.
- Completion: After registering all the products, the browser is closed.
- Python: A flexible and popular programming language, recognized for its ease and readability. It's utilized for automation development.
- Selenium: Implemented for automating web browsers, facilitating interaction with web elements and simulating user activities.
- Pandas: Utilized for efficient data manipulation, allowing the automation to manage product data from a Python-based Excel file.
- Excel: A common format for storing product data, using Excel files, which are widely accessible and suitable for tabular data storage.
- Time: The Time module in Python is a powerful tool that provides a wide range of functions to manage time-related tasks efficiently.
This automation depends on two additional projects:
-
- This backend project provides the necessary API endpoints and handles the server-side logic required by the automation.
- Ensure you follow the installation and setup instructions provided in the
README.md
of the backend repository to get it up and running.
-
- This frontend project provides the user interface where the forms are located and filled by the automation.
- Ensure the frontend project is properly set up and running according to its documentation.
Ensure both the backend and frontend projects are running and accessible before using the Quick Form Fill automation.
- Git: A widely adopted distributed version control system.
- Python: A versatile, multipurpose programming language.
- Pip: A package manager for installing and handling Python libraries.
git clone https://github.com/esperanca-leonardo/quick-form-fill-automation.git
cd quick-form-fill-automation
-
pip install virtualenv
-
-
virtualenv venv
-
python -m virtualenv venv
-
-
-
source venv/bin/activate
-
.\venv\Scripts\activate.bat
-
Make sure you have Python and pip installed on your system. Then, install the project dependencies using pip
pip install -r requirements.txt
Execute the project using the following command
python main.py