Skip to main content

Module types

Module types 

Source
Expand description

Shared value types used across the public API.

Structs§

BoundingBox
A rectangle in viewport coordinates (element bounds).
ConsoleMessage
A console message captured from the page.
Cookie
A cookie, shaped for add_cookies / cookies.
NameValue
A name/value pair, e.g. a single localStorage entry.
OriginStorage
localStorage entries grouped by origin.
Position
A point in viewport coordinates.
ProxySettings
Proxy server configuration.
ScreenshotClip
A clip rectangle for screenshots.
StorageState
A serializable snapshot of a context’s storage: cookies plus per-origin localStorage. Mirrors Playwright’s storageState shape. Cookies stay as serde_json::Value (the raw CDP/Storage cookie objects) so they can be fed straight back to set_storage_state.
Viewport
A viewport size.

Enums§

AriaRole
An ARIA role, used by get_by_role.
KeyboardModifier
Keyboard modifiers for actions.
MouseButton
Mouse button for click/hover actions.
ScreenshotType
Screenshot image format.

Constants§

DEFAULT_TIMEOUT_MS
Default action timeout in milliseconds (matches Playwright’s default).

Type Aliases§

Headers
Extra HTTP headers map.