Take screenshot
Save a PNG screenshot of the page or one element.
Command in the Browser toolkit · id ooa.browser/screenshot · 6 inputs (1 required), 1 output
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Path | File | Yes | PNG file to create. | |
| Full page | Boolean | No | false | Whole scrollable page. |
| Selector | String | No | Only this element (selector). | |
| Session | String | No | browser | Session name. |
| Captured object | Dictionary | No | Only this element: the captured object from Capture or Pick in OneAgentStudio. | |
| Window | Dictionary | No | Which window to act in. Leave empty to use the session's current tab. {"source": "browser", "title": "Invoice * - Shop", "title_match": "wildcard", "url": "...", "url_match": "contains", "browser": "edge"} switches to the first open tab whose title and/or address matches (also in attached browsers, and in one listening on port 9222); {"source": "variable", "variable": "session name"} uses that browser session; {"source": "application", "title": "..."} names a desktop window, which works only when it is a window of an attached browser. Matches: wildcard (default for the title), contains (default for the address), equals or regex; text matches ignore case. Values may use variables. |
Outputs
| Output | Type | What it is |
|---|---|---|
| path | File | Saved image. |