Documentation
¶
Overview ¶
Package browser defines session-bound browser actions without a driver dependency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct {
Operation Operation `json:"operation" jsonschema:"enum=navigate,enum=read,enum=click,enum=fill,enum=screenshot,enum=download"`
URL string `json:"url,omitempty"`
Selector string `json:"selector,omitempty"`
Value string `json:"value,omitempty"`
}
Action cannot select credentials, profiles, filesystem paths or tenant identity.
type Control ¶
type Control struct {
Selector string `json:"selector"`
Tag string `json:"tag"`
Text string `json:"text"`
Type string `json:"type,omitempty"`
}
Control describes an interactive element without exposing input values.
type Result ¶
type Result struct {
Document *web.Document `json:"document,omitempty"`
Controls []Control `json:"controls,omitempty"`
Name string `json:"name,omitempty"`
MediaType string `json:"media_type,omitempty"`
Data []byte `json:"data,omitempty"`
}
Result preserves readable content or a bounded binary result. Data is never a local path; applications can persist it using their existing artifact.Store.
Click to show internal directories.
Click to hide internal directories.