[puppeteer.connect]
puppeteer.connect is a slot in the puppeteer namespace, in Hyperlambda, the language of Magic Cloud. Creates or reuses a Puppeteer browser session.
- Returns: Resolves to the created Puppeteer session ID
- Scope: provides
puppeteer-session- Creates an open Puppeteer browser session scope for puppeteer.* slots
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[timeout-minutes] |
int | no | Idle timeout in minutes. |
[max-lifetime-minutes] |
int | no | Maximum session lifetime in minutes. |
[headless] |
bool | no | Whether the browser should run headless. Default: true. |
[timeout] |
int | no | Browser launch timeout in milliseconds. |
[args] |
string|lambda | no | Browser launch arguments. |
[args] / unnamed child node |
string | no | Argument value. Can be repeated. |
[user-data-dir] |
string | no | Browser user data directory. |
[executable] |
string | no | Browser executable path. |
[executable-path] |
string | no | Browser executable path. |
Constraints
- AtMostOneOf: [executable] and [executable-path] are aliases; supply at most one (
[executable],[executable-path])
Guide: How to use [puppeteer.connect]
JSON declaration
This is the complete declaration of puppeteer.connect, as the running system describes it. It is also published as slot.json.
JSON declaration (loads when opened)
← puppeteer.close |
all puppeteer.* slots |
puppeteer.content → |