compare_frames
Compare screenshots at two frames to detect pixel differences for visual regression testing. Reports changed pixel count, percentage, and altered screen regions.
Instructions
Compare screenshots at two frames and report pixel differences.
Captures the screen as color grids at two frames and computes a diff. Returns changed pixel count, percentage, and which screen regions changed. Use this for visual regression testing.
Args: script_path: Absolute path to the .py script to run. frame_a: First frame number (default: 1). frame_b: Second frame number (default: 30). timeout: Maximum seconds to wait for the script (default: 15).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_path | Yes | ||
| frame_a | No | ||
| frame_b | No | ||
| timeout | No |