This project is an automation tool that sets up and runs a Python script inside a virtual environment. It automatically installs dependencies and Playwright if not already installed.
- Automatic virtual environment setup
- Dependency installation from
requirements.txt
- Playwright installation and browser setup
- Ensures Python is installed before execution
- Runs the
codegen.py
script automatically - Supports interactive user input for custom execution
If this project is in a Git repository, clone it using:
git clone <repository-url>
cd codegen
run the run_codegen.ps1
1. navigate to project directory
2. create virtual env manually or py -m venv ./venv
3. activate the venv
4. pip install -r requirements.txt
5. run the code manually in /engine/codegen.py
1. Device Type: The type of device you want to test with. st or mi or leave empty
2. Output CSV File The filename where interactions will be saved. default is: page_base.csv
3. Custom Screen URL The URL of the screen for testing. Leave blank to use default. https://www.google.com
4. Generate Code? Whether to generate Python test code (y/n).