Configure browser viewport size and refresh rate for your automations
Kernel browsers allow you to configure the viewport size and refresh rate when creating a browser session. The viewport configuration determines the initial browser window dimensions and display refresh rate. The refresh rate can be explicitly specified or automatically determined based on the width and height if they match a supported configuration.
You can configure the viewport when creating a browser by specifying the viewport parameter with width and height. The refresh_rate is optional and will be automatically determined from the dimensions if they match a supported configuration:
Kernel supports specific viewport configurations. The server will reject unsupported combinations. When you provide width and height without specifying refresh_rate, it will be automatically determined if the dimensions match one of the supported resolutions exactly. The following resolutions are supported:
Resolution
Width
Height
Refresh Rate
QHD
2560
1440
10 Hz
Full HD
1920
1080
25 Hz
WUXGA
1920
1200
25 Hz
WXGA+
1440
900
25 Hz
WXGA
1200
800
25 Hz
XGA
1024
768
60 Hz
Higher resolutions may affect the responsiveness of live view browser sessions.