Versions in this module Expand all Collapse all v0 v0.114.7 Dec 9, 2023 Changes in this version + var ErrCtxDestroyed = &Error + var ErrCtxNotFound = &Error + var ErrNodeNotFoundAtPos = &Error + var ErrNotAttachedToActivePage = &Error + var ErrObjNotFound = &Error + var ErrSearchSessionNotFound = &Error + var ErrSessionNotFound = &Error + type Client struct + func MustStartWithURL(ctx context.Context, u string, h http.Header) *Client + func New() *Client + func StartWithURL(ctx context.Context, u string, h http.Header) (*Client, error) + func (cdp *Client) Call(ctx context.Context, sessionID, method string, params interface{}) ([]byte, error) + func (cdp *Client) Event() <-chan *Event + func (cdp *Client) Logger(l utils.Logger) *Client + func (cdp *Client) Start(ws WebSocketable) *Client + type Dialer interface + DialContext func(ctx context.Context, network, address string) (net.Conn, error) + type ErrBadHandshake struct + Body string + Status string + func (e *ErrBadHandshake) Error() string + type Error struct + Code int + Data string + Message string + func (e *Error) Error() string + func (e Error) Is(target error) bool + type Event struct + Method string + Params json.RawMessage + SessionID string + func (e Event) String() string + type Request struct + ID int + Method string + Params interface{} + SessionID string + func (req Request) String() string + type Response struct + Error *Error + ID int + Result json.RawMessage + func (res Response) String() string + type WebSocket struct + Dialer Dialer + func (ws *WebSocket) Close() error + func (ws *WebSocket) Connect(ctx context.Context, wsURL string, header http.Header) error + func (ws *WebSocket) Read() ([]byte, error) + func (ws *WebSocket) Send(msg []byte) error + type WebSocketable interface + Read func() ([]byte, error) + Send func([]byte) error + func MustConnectWS(wsURL string) WebSocketable