Skip to content
14 changes: 7 additions & 7 deletions browsers/viewport.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const fullHD = await kernel.browsers.create({
}
});

// Full HD (1920x1080) - auto-determined 25Hz
// Full HD (1920x1080) - auto-determined 25Hz (Default configuration)
const fullHDAuto = await kernel.browsers.create({
viewport: {
width: 1920,
Expand All @@ -110,7 +110,7 @@ const qhd = await kernel.browsers.create({
}
});

// XGA (1024x768) - auto-determined 60Hz (Default configuration)
// XGA (1024x768) - auto-determined 60Hz
const xga = await kernel.browsers.create({
viewport: {
width: 1024,
Expand Down Expand Up @@ -138,7 +138,7 @@ full_hd = kernel.browsers.create(
}
)

# Full HD (1920x1080) - auto-determined 25Hz
# Full HD (1920x1080) - auto-determined 25Hz (Default configuration)
full_hd_auto = kernel.browsers.create(
viewport={
"width": 1920,
Expand All @@ -155,7 +155,7 @@ qhd = kernel.browsers.create(
}
)

# XGA (1024x768) - auto-determined 60Hz (Default configuration)
# XGA (1024x768) - auto-determined 60Hz
xga = kernel.browsers.create(
viewport={
"width": 1024,
Expand All @@ -177,17 +177,17 @@ wuxga = kernel.browsers.create(

## Default viewport

If the `viewport` parameter is omitted when creating a browser, the default configuration is typically 1024x768 at 60Hz.
If the `viewport` parameter is omitted when creating a browser, the default configuration is typically 1920x1080 at 25Hz.

<CodeGroup>

```typescript Typescript/Javascript
// Uses default viewport (1024x768@60Hz)
// Uses default viewport (1920x1080@25Hz)
const defaultViewport = await kernel.browsers.create();
```

```python Python
# Uses default viewport (1024x768@60Hz)
# Uses default viewport (1920x1080@25Hz)
default_viewport = kernel.browsers.create()
```

Expand Down