BrowserViewport

data class BrowserViewport(val width: Int, val height: Int, val desktop: Boolean)(source)

The page size a WebBrowser presents, in CSS pixels, and whether it asks sites for their desktop layout. Desktop is Playwright's default viewport (as the Pydantic AI Harness browser uses); Mobile a typical phone.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, desktop: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
val width: Int