Skip to content

AutoMouser automatically generates browser automation code from your mouse movements, capturing every click, drag, and hover to streamline your workflow and build robust, repeatable tests.

Notifications You must be signed in to change notification settings

testnest/AutoMouser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoMouser

Icon

AutoMouser is a Chrome extension that intelligently tracks user interactions and automatically generates Selenium test code using OpenAI's GPT model. It simplifies the process of creating automated tests by recording your browser actions and converting them into robust, maintainable Python Selenium scripts. This project is built upon the work in bitmarte/selenium-rfc-chrome-extension.

Features

  • 🎯 Real-time interaction tracking (clicks, inputs, scrolls)
  • 🤖 Automatic Selenium Python code generation
  • 📝 Smart input consolidation
  • 🔄 Window resize detection
  • 💾 JSON action log export
  • ✨ Multiple XPath generation strategies
  • 🎨 Clean, well-structured code output

Installation

  1. Clone this repository or download the source code
  2. Replace OPENAI_API_KEY in background.js with your actual API key and customize the prompt template in SELENIUM_PROMPT if needed
  3. Open Chrome and navigate to chrome://extensions/
  4. Enable "Developer mode" in the top right
  5. Click "Load unpacked" and select the extension directory

Usage

  1. Click the AutoMouser icon in your Chrome toolbar to start recording
  2. Perform the actions you want to automate
  3. Click the icon again to stop recording and generate code
  4. Two files will be downloaded:
    • tracking_log.json: Raw interaction data
    • selenium_test.py: Generated Selenium test script
  5. Check and run the generated Selenium code in your Python environment!

Contributing

Contributions are welcome! Please feel free to submit pull requests, create issues, or suggest improvements. For any issues, please create an issue in the repository.

About

AutoMouser automatically generates browser automation code from your mouse movements, capturing every click, drag, and hover to streamline your workflow and build robust, repeatable tests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%