Skip to main content

Close browser

Close the browser session.

Command in the Browser toolkit · id ooa.browser/close · 3 inputs, no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNobrowserSession name.
WhatStringNosessionsession: what this agent opened (its window, or the tab it worked in); tab: the current tab; window: the whole window; all: every browser window.
WindowDictionaryNoThe tab or window to close, instead of the session's current one. 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.