act
actAct on the page. For upload give args.files=[{name,text|base64}] inline. kind: click, dblclick, rightclick, hover, focus, type (ref+value), press (value=key), select (ref+values), check/uncheck, scroll, drag (ref=source, args.to=target ref, or args.to_target={text:"Drop here"} for a drop area without a ref; draggable elements are marked in the snapshot), upload, dialog (value=accept|dismiss for an open dialog; confirms are auto-dismissed, so for yes-flows first value=policy args={"confirm":"accept"} or value=accept_all, then repeat the click), back, forward, reload, cookies, storage, emulate. kind=steps with args.steps=[{kind,ref,value,...}] runs up to 20 in one call, stops at the first error, one final diff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ref from the snapshot, e.g. e12 | |
| args | No | any extra argument of the action, e.g. {"submit":true} for type, {"to":"e9"} for drag, {"button":"right"} for click | |
| kind | Yes | ||
| value | No | type: the text; press: the key (Enter, Control+A); select: the option; scroll: top|bottom|down|up or pixels; dialog: accept|dismiss; check/click need none | |
| secret | Yes | session secret from create_session | |
| values | No | select: options; upload: file names from args.files | |
| snapshot | No | page view after the action (default diff) | |
| session_id | Yes | session id from create_session |