Skip to main content

Attach to open browser

Connect to an Edge or Chrome that is already running, through its DevTools debugging port, and use it as a named session. Only a browser started with a debugging port can be reached (use Start browser for automation, or start it with --remote-debugging-port); a browser opened the usual way has none. Closing the session later only disconnects; the browser stays open.

Command in the Browser toolkit · id ooa.browser/attach · 4 inputs, 4 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
EndpointStringNohttp://127.0.0.1:9222Debugging address of the browser: http://host:port, just the port, or a ws:// DevTools address.
BrowserStringNoWhich browser it is; found out from the browser itself when left empty. Used by window choices that name a browser.
SessionStringNobrowserSession name.
Wait up to (milliseconds)NumberNo30000How long to wait for the connection, in milliseconds.

Outputs​

OutputTypeWhat it is
titleStringTitle of the session's current tab.
urlStringAddress of the session's current tab.
tab_countNumberNumber of open tabs in the browser.
windowDictionaryA window choice for this session, to pass as the window of element actions.