Skip to main content
Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
Source: node-sdk/src/session.ts Get a Playwright page connected to the session via CDP. The connection is established lazily on first access, cached, and closed by stop(). The SDK never answers native dialogs itself. With dialog_policy: 'auto' (the default) the Notte backend answers them; with dialog_policy: 'client' register page.on('dialog', ...) to accept or dismiss them. Requires the optional playwright-core peer dependency (npm install playwright-core).

Returns

Example