Skip to main content

Start browser for automation

Start Edge or Chrome with a debugging port and its own profile folder in the workspace, so this agent, later agents and Attach to open browser can all reach it. When a browser already listens on the port it is reused instead. A browser opened the usual way cannot be reached, because it has no debugging port; recent browsers also refuse a debugging port on the everyday profile, which is why a separate profile is used. The browser keeps running after the agent ends.

Command in the Browser toolkit · id ooa.browser/open_for_automation · 9 inputs, 7 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
BrowserStringNoedgeInstalled browser to start.
PortNumberNo9222Debugging port. 9222 is the one window choices look at by themselves.
Address (URL)StringNoPage to open first.
Profile folderFileNoProfile folder for this browser (cookies, sign-ins). Default: .ooa/browser-profiles/<browser>-<port> in the workspace.
HeadlessBooleanNofalseRun without a visible window.
AttachBooleanNotrueAlso attach to it as the named session.
SessionStringNobrowserSession name.
ExecutableFileNoPath of the browser program, when it is not installed in the usual place.
Wait up to (milliseconds)NumberNo30000How long to wait for the browser to start, in milliseconds.

Outputs​

OutputTypeWhat it is
titleStringTitle of the current tab (when attached).
urlStringAddress of the current tab (when attached).
tab_countNumberNumber of open tabs (when attached).
windowDictionaryA window choice for this session, to pass as the window of element actions.
endpointStringDebugging address to attach to.
startedBooleanTrue when a new browser was started; false when one already listened on the port.
pidNumberProcess id of the started browser, or 0 when an existing one was reused.