This Python program automates the process of filling out the attendance form for GoFourthLearning using the Selenium WebDriver. It reads login credentials and the form URL from a JSON file and performs the necessary actions to submit attendance.
- Reads login credentials and form URL from a JSON file.
- Uses Selenium WebDriver to automate the form-filling process.
- Handles the Firefox binary location for Selenium WebDriver.
- Python 3.x
- Mozilla Firefox installed
- Geckodriver executable
-
Clone the repository or download the source code.
-
Install the required Python packages:
python -m pip install -r requirements.txt
-
Download and Install Mozilla Firefox:
- Download the latest version of Mozilla Firefox from https://www.mozilla.org/firefox/.
- Follow the installation instructions for your operating system.
-
Download Geckodriver:
- Download Geckodriver from GeckoDriver releases.
- Choose the appropriate version based on your operating system.
- Extract the downloaded archive.
-
Place Geckodriver in Firefox Binary Directory:
- Move the
geckodriver
executable to the same directory as your Firefox binary. - For example, if Firefox is installed in
C:/Program Files/Mozilla Firefox/
, movegeckodriver.exe
toC:/Program Files/Mozilla Firefox/
.
- Move the
-
Update the JSON file (
login.json
) with your specific information.
Run the program by executing the following command in your terminal or command prompt:
python msformsfill.py