hmi_browser
Automate a headless Edge browser to test HMI panels using actions like open, screenshot, console, eval, click, type, wait, and close.
Instructions
Automate a headless Edge browser to test the HMI. Actions: open (navigate), screenshot (capture viewport or element), console (read logs/errors), eval (run JS), click, type, wait, close. ALWAYS use this after deploy to visually verify the HMI works.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X coordinate for mouse click. | |
| y | No | Y coordinate for mouse click. | |
| ms | No | Milliseconds to wait (wait action only). | |
| url | No | URL to navigate to (open action only). Defaults to the live HMI panel (http://<hmi-station-ip>/) when reachable, else the local HMI runtime URL. | |
| text | No | Text content to type, or to find for clicking. | |
| clear | No | Clear the console/error buffers after reading them (console action only). | |
| action | Yes | Action to perform in the HMI browser session. | |
| fullPage | No | Take a full page screenshot (screenshot action only). | |
| selector | No | CSS/Text selector to screenshot, click, type, or wait for. | |
| viewport | No | Browser viewport size (open action only). Defaults to 1200x800. | |
| expression | No | JavaScript expression to evaluate (eval action only). |