vwedesam / Automate-contact-form-submission

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automate Contact Form Submission

The scripts.py contains re-usable class methods that makes form automation easy

Setup

  1. create a virtual env
  2. add the required env vars
  3. download chromedriver (https://chromedriver.chromium.org/downloads)

chromedriver version should be the same as the chrome installed on your PC

installation

pip3 install -r requirements.txt 

ENV

export FORM_URL="http://localhost:5000"
export FLASK_ENV=development
export FLASK_APP=automation.main

run App

This gives you a form to test the automation scripts

flask run --host=0.0.0.0
/// shell
run start_server.sh

RUN TEST SCRIPT

py automation/test.py

Captcha Automation Coming Soon !!!

Celery integration Coming Soon !!!

run celery worker

celery --app automation.server.tasks.celery worker --loglevel=info

About


Languages

Language:Python 53.0%Language:HTML 44.2%Language:CSS 1.5%Language:Shell 1.3%