browser::act
Interact with the page: click (left/right/middle, single or double), hover, type, press, scroll, or drag (press at the start point, glide to x2/y2, release). Address elements with a [ref=eN] handle from browser::snapshot (or a pick), or raw viewport coordinates.
- actionstringrequired
`click`, `hover`, `type`, `press`, `scroll`, or `drag`.
- buttonstring
Mouse button for `click`: `left` (default), `right`, or `middle`.
- click_countinteger· uint32min 0
Clicks in the gesture: 2 double-clicks (`click` only, default 1).
- delta_ynumber· double
Scroll distance in pixels; positive scrolls down (`scroll`).
- keystring
Key name for `press`: Enter, Tab, Escape, Backspace, Delete, ArrowUp/Down/Left/Right, Home, End, PageUp, PageDown.
- refstring
Element ref from `browser::snapshot` (`e3`) or `browser::picked` (`p1`). Refs die on navigation; re-snapshot after.
- session_idstringrequired
- textstring
Text to insert (`type`).
- xnumber· double
Viewport x, when acting by coordinates instead of ref.
- x2number· double
Drag end x, in viewport pixels (`drag`). The start is `x`/`y` or a `ref`; the end is `x2`/`y2`.
- ynumber· double
Viewport y, when acting by coordinates instead of ref.
- y2number· double
Drag end y, in viewport pixels (`drag`).
- detailstringrequired
What was done, for the transcript.
- okbooleanrequired