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.
ConsoleMessageLocation
The source location of a ConsoleMessage, mirroring the top frame of a CDP Runtime.consoleAPICalled stackTrace.callFrames[0].
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.
SecurityDetails
TLS/security details for a response, mirroring CDP’s Security/securityStateChanged / Network.responseReceived security info.
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.
WebError
An error thrown from page JavaScript (e.g. an unhandled exception or a rejected promise observed via Runtime.exceptionThrown).

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.