> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# page

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) 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.
</Tip>

[Source: node-sdk/src/session.ts](https://github.com/nottelabs/notte/blob/main/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()`.
Native dialogs are left to the Notte backend.

Requires the optional `playwright-core` peer dependency
(`npm install playwright-core`).

```typescript theme={null}
Session.page(): Promise<Page>;
```

## Returns

```typescript theme={null}
Promise<Page>
```

## Example

```typescript theme={null}
const page = await session.page();
await page.goto('https://www.google.com');
await page.screenshot({ path: 'screenshot.png' });
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.