Skip to main content

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​

InputTypeRequiredDefaultWhat it is
PathFileYesPNG file to create.
Full pageBooleanNofalseWhole scrollable page.
SelectorStringNoOnly this element (selector).
SessionStringNobrowserSession name.
Captured objectDictionaryNoOnly this element: the captured object from Capture or Pick in OneAgentStudio.
WindowDictionaryNoWhich 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​

OutputTypeWhat it is
pathFileSaved image.