Skip to main content

Download file

Click a link or button that starts a download and save the file into a folder.

Command in the Browser toolkit · id ooa.browser/download · 7 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Captured objectDictionaryNoThe captured object from Capture or Pick in OneAgentStudio: the element's properties to match (each with use and a match rule: equals, not_equals, contains, starts_with, ends_with, wildcard or regex), search_by (properties, css or xpath), index and iframes. Used instead of the selector when given.
SelectorStringNoElement that starts the download, used when no captured object is given.
FolderFileYesFolder to save into.
Wait up to (milliseconds)NumberNo120000How long to wait for the element and the download.
SessionStringNobrowserSession name.
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.
Start timeout (milliseconds)NumberNo15000How long to wait after the click for the download to start; BROWSER.NO_DOWNLOAD when it does not (the file itself may then take up to timeout_ms).

Outputs​

OutputTypeWhat it is
pathFileSaved file.