Attach Browser
Attach Browser
Section titled “Attach Browser”Type: browser-attach · Package: Browser v1.0.0 · Output: ZoanPageSession
Reuse a browser session you already have open, instead of opening a new one with Open Browser. Useful when a session was created before (in another part of the playbook, or in a sub-playbook) and you want to continue working with it, or when several sections of the flow share the same browser.
How it works
Section titled “How it works”Receives an existing browser session. If you give it a body, the activities within it inherit that session automatically (you don’t need to pass page in each one), just like with Open Browser.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
page | session | The session variable (ZoanPageSession) to connect to. |
Optional parameters
Section titled “Optional parameters”Ninguno.
Subflows (lanes)
Section titled “Subflows (lanes)”body optional
Section titled “body optional”Activities to execute with this browser session. They inherit the session automatically.
Example
Section titled “Example”Reuse a previously opened browser with keepOpen in a later section:
Open Browser browser = chrome keepOpen = true → output: page └─ body: Page Navigate url = "https://portal.cliente.com" ... login ...
// más adelante en el flujoAttach Browser page = = page └─ body: Extract Table selector = (#movimientos) → output: datosRelated activities
Section titled “Related activities”- Open Browser — open the browser that you then reuse.
- New Page — open another tab in the attached session.