compare_screenshot
Compare a current page screenshot against a saved baseline to detect visual changes. On first run, saves the baseline. Returns pixel diff percentage to flag differences.
Instructions
Compare the current page screenshot against a saved baseline. On first run (or with update_baseline=true) saves the baseline. Returns the pixel diff percentage. Install Pillow for accurate pixel comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Baseline name e.g. 'homepage' | default |
| threshold | No | Max allowed diff % before failure | |
| update_baseline | No |