Expand description
Shared value types used across the public API.
Structs§
- Bounding
Box - A rectangle in viewport coordinates (element bounds).
- Console
Message - A console message captured from the page.
- Console
Message Location - The source location of a
ConsoleMessage, mirroring the top frame of a CDPRuntime.consoleAPICalledstackTrace.callFrames[0]. - Cookie
- A cookie, shaped for
add_cookies/cookies. - Name
Value - A name/value pair, e.g. a single localStorage entry.
- Origin
Storage - localStorage entries grouped by origin.
- Position
- A point in viewport coordinates.
- Proxy
Settings - Proxy server configuration.
- Screenshot
Clip - A clip rectangle for screenshots.
- Security
Details - TLS/security details for a response, mirroring CDP’s
Security/securityStateChanged/Network.responseReceivedsecurity info. - Storage
State - A serializable snapshot of a context’s storage: cookies plus per-origin
localStorage. Mirrors Playwright’s
storageStateshape. Cookies stay asserde_json::Value(the raw CDP/Storagecookie objects) so they can be fed straight back toset_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§
- Aria
Role - An ARIA role, used by
get_by_role. - Keyboard
Modifier - Keyboard modifiers for actions.
- Mouse
Button - Mouse button for click/hover actions.
- Screenshot
Type - Screenshot image format.
Constants§
- DEFAULT_
TIMEOUT_ MS - Default action timeout in milliseconds (matches Playwright’s default).
Type Aliases§
- Headers
- Extra HTTP headers map.