run_test
Executes a Playwright test and automatically heals failures caused by locator errors.
Instructions
Run the generated pytest Playwright test. Automatically heals the test if it fails due to a locator error. Always call write_test first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crawl_data | Yes | The crawl data returned by crawl_page as a JSON string. Needed for auto-healing. | |
| output_dir | Yes | The absolute path of the project the user is currently working in. Must be the same value passed to write_test. Use your working directory context — never use the MCP server's own directory. | |
| test_file | No | Absolute path to the test file to run. Use the path returned by write_test. If omitted, falls back to test_generated.py. |