Dibya Sarothi
Dibya Sarothi
Automation & BotsProduction ReadySeptember 2026

Selenium WebDriver Automation Suite

Event Scraper, Web Form Submitter & High-Frequency Cookie Clicker Bot

Three focused Selenium WebDriver automation modules covering dynamic XPath scraping, keyboard simulation, and JS injection loops.

Selenium WebDriver Automation Suite overview
Project Overview

A foundational Selenium WebDriver automation repository comprising three standalone bots: a Python.org upcoming conferences & events XPath scraper (main.py), an automated newsletter signup form submitter (Interaction.py), and a Cookie Clicker bot using JS runtime injection (Cookie_Clicker_BOT.py).

Problem Statement

Different automation tasks demand distinct browser techniques—from structured XPath DOM scraping to high-frequency DOM event dispatch.

Engineering Rationale

Demonstrates breadth across core WebDriver patterns cleanly separated by single-responsibility automation scripts.

Engineering Objectives

Scrape sequential dates and titles from Python.org using structured XPath indexing.
Automate form inputs and keyboard submit triggers (Keys.ENTER).
Dismiss Cookie Clicker language modals and execute high-CPS browser JS click loops.
Architecture Blueprint

System Architecture

Three focused standalone Python scripts sharing ChromeDriver patterns across scraping, form input, and JS injection.

01

Cross-Technique Automation Toolkit

Pairs read-only XPath scraping (main.py), input simulation (Interaction.py), and high-throughput JS execution (Cookie_Clicker_BOT.py).

Core & Backend Implementation

  • main.py extracting event dates/names from python.org via XPath.
  • Interaction.py simulating typed user registrations into web forms.
  • Cookie_Clicker_BOT.py running JS click execution inside ozh.github.io/cookieclicker.

Client & Interface Layer

  • Structured terminal output and automated Chrome DOM interaction.

Data & Schema Design

Engine / Tier: In-Memory Dictionary Serialization

Structures scraped events into indexed {time, name} Python dictionaries.

Core Models & Entities
EventEntry

Authentication & Security Controls

Auth Model: Public unauthenticated browser targets
  • Cleanly scoped selectors with zero hardcoded private user data.

Engineering Challenges & Technical Decisions

Key Challenges Solved

Challenge: Native Selenium .click() bottlenecked throughput during rapid Cookie Clicker execution.
Engineering Solution: Switched click dispatch to direct browser runtime JS injection for smooth high-frequency execution.

Trade-Off Decisions

Decision: Separate Script per Automation Pattern
Architectural Rationale: Keeps XPath scraping, form automation, and JS click loops clean and easy to inspect.

Testing & Verification Methodology

Frameworks & Approach: Live Browser Script Execution
  • Verified clean JSON-ready event dictionary extraction and automated form submission.

Results & Engineering Takeaways

Established reusable XPath indexing, wait strategies, and JS injection benchmarks for later Selenium bots.