154 lines
32 KiB
Markdown
154 lines
32 KiB
Markdown
|
|
# API Contract Scan
|
||
|
|
|
||
|
|
`CODEX.md` was not present anywhere under `/workspace`, so this scan used `CLAUDE.md` plus the existing repository structure as the operative conventions.
|
||
|
|
|
||
|
|
Coverage heuristic: `Yes` means the symbol is referenced from `*_test.go` and/or, for callable symbols, its body had non-zero statement coverage in `go test -coverprofile=/tmp/webview-cover.out ./...`.
|
||
|
|
|
||
|
|
Usage-example comment heuristic: `Yes` means the symbol's own Go doc comment contains `Example`, `for example`, or `e.g.`.
|
||
|
|
|
||
|
|
| Name | Signature | Package Path | Description | Test Coverage | Usage-Example Comment |
|
||
|
|
|---|---|---|---|---|---|
|
||
|
|
| <code>Action</code> | <code>Action interface { Execute(ctx context.Context, wv *Webview) error }</code> | <code>dappco.re/go/core/webview</code> | Action represents a browser action that can be performed. | Yes | No |
|
||
|
|
| <code>ClickAction</code> | <code>ClickAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | ClickAction represents a click action. | Yes | No |
|
||
|
|
| <code>ClickAction.Execute</code> | <code>func (a ClickAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute performs the click action. | No | No |
|
||
|
|
| <code>TypeAction</code> | <code>TypeAction struct { Selector string Text string }</code> | <code>dappco.re/go/core/webview</code> | TypeAction represents a typing action. | Yes | No |
|
||
|
|
| <code>TypeAction.Execute</code> | <code>func (a TypeAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute performs the type action. | No | No |
|
||
|
|
| <code>NavigateAction</code> | <code>NavigateAction struct { URL string }</code> | <code>dappco.re/go/core/webview</code> | NavigateAction represents a navigation action. | Yes | No |
|
||
|
|
| <code>NavigateAction.Execute</code> | <code>func (a NavigateAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute performs the navigate action. | No | No |
|
||
|
|
| <code>WaitAction</code> | <code>WaitAction struct { Duration time.Duration }</code> | <code>dappco.re/go/core/webview</code> | WaitAction represents a wait action. | Yes | No |
|
||
|
|
| <code>WaitAction.Execute</code> | <code>func (a WaitAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute performs the wait action. | Yes | No |
|
||
|
|
| <code>WaitForSelectorAction</code> | <code>WaitForSelectorAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | WaitForSelectorAction represents waiting for a selector. | Yes | No |
|
||
|
|
| <code>WaitForSelectorAction.Execute</code> | <code>func (a WaitForSelectorAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute waits for the selector to appear. | No | No |
|
||
|
|
| <code>ScrollAction</code> | <code>ScrollAction struct { X int Y int }</code> | <code>dappco.re/go/core/webview</code> | ScrollAction represents a scroll action. | Yes | No |
|
||
|
|
| <code>ScrollAction.Execute</code> | <code>func (a ScrollAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute performs the scroll action. | No | No |
|
||
|
|
| <code>ScrollIntoViewAction</code> | <code>ScrollIntoViewAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | ScrollIntoViewAction scrolls an element into view. | Yes | No |
|
||
|
|
| <code>ScrollIntoViewAction.Execute</code> | <code>func (a ScrollIntoViewAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute scrolls the element into view. | No | No |
|
||
|
|
| <code>FocusAction</code> | <code>FocusAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | FocusAction focuses an element. | Yes | No |
|
||
|
|
| <code>FocusAction.Execute</code> | <code>func (a FocusAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute focuses the element. | No | No |
|
||
|
|
| <code>BlurAction</code> | <code>BlurAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | BlurAction removes focus from an element. | Yes | No |
|
||
|
|
| <code>BlurAction.Execute</code> | <code>func (a BlurAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute removes focus from the element. | No | No |
|
||
|
|
| <code>ClearAction</code> | <code>ClearAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | ClearAction clears the value of an input element. | Yes | No |
|
||
|
|
| <code>ClearAction.Execute</code> | <code>func (a ClearAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute clears the input value. | No | No |
|
||
|
|
| <code>SelectAction</code> | <code>SelectAction struct { Selector string Value string }</code> | <code>dappco.re/go/core/webview</code> | SelectAction selects an option in a select element. | Yes | No |
|
||
|
|
| <code>SelectAction.Execute</code> | <code>func (a SelectAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute selects the option. | No | No |
|
||
|
|
| <code>CheckAction</code> | <code>CheckAction struct { Selector string Checked bool }</code> | <code>dappco.re/go/core/webview</code> | CheckAction checks or unchecks a checkbox. | Yes | No |
|
||
|
|
| <code>CheckAction.Execute</code> | <code>func (a CheckAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute checks/unchecks the checkbox. | No | No |
|
||
|
|
| <code>HoverAction</code> | <code>HoverAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | HoverAction hovers over an element. | Yes | No |
|
||
|
|
| <code>HoverAction.Execute</code> | <code>func (a HoverAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute hovers over the element. | No | No |
|
||
|
|
| <code>DoubleClickAction</code> | <code>DoubleClickAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | DoubleClickAction double-clicks an element. | Yes | No |
|
||
|
|
| <code>DoubleClickAction.Execute</code> | <code>func (a DoubleClickAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute double-clicks the element. | No | No |
|
||
|
|
| <code>RightClickAction</code> | <code>RightClickAction struct { Selector string }</code> | <code>dappco.re/go/core/webview</code> | RightClickAction right-clicks an element. | Yes | No |
|
||
|
|
| <code>RightClickAction.Execute</code> | <code>func (a RightClickAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute right-clicks the element. | No | No |
|
||
|
|
| <code>PressKeyAction</code> | <code>PressKeyAction struct { Key string // e.g., "Enter", "Tab", "Escape" }</code> | <code>dappco.re/go/core/webview</code> | PressKeyAction presses a key. | Yes | No |
|
||
|
|
| <code>PressKeyAction.Execute</code> | <code>func (a PressKeyAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute presses the key. | No | No |
|
||
|
|
| <code>SetAttributeAction</code> | <code>SetAttributeAction struct { Selector string Attribute string Value string }</code> | <code>dappco.re/go/core/webview</code> | SetAttributeAction sets an attribute on an element. | Yes | No |
|
||
|
|
| <code>SetAttributeAction.Execute</code> | <code>func (a SetAttributeAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute sets the attribute. | No | No |
|
||
|
|
| <code>RemoveAttributeAction</code> | <code>RemoveAttributeAction struct { Selector string Attribute string }</code> | <code>dappco.re/go/core/webview</code> | RemoveAttributeAction removes an attribute from an element. | Yes | No |
|
||
|
|
| <code>RemoveAttributeAction.Execute</code> | <code>func (a RemoveAttributeAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute removes the attribute. | No | No |
|
||
|
|
| <code>SetValueAction</code> | <code>SetValueAction struct { Selector string Value string }</code> | <code>dappco.re/go/core/webview</code> | SetValueAction sets the value of an input element. | Yes | No |
|
||
|
|
| <code>SetValueAction.Execute</code> | <code>func (a SetValueAction) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute sets the value. | No | No |
|
||
|
|
| <code>ActionSequence</code> | <code>ActionSequence struct { // contains filtered or unexported fields }</code> | <code>dappco.re/go/core/webview</code> | ActionSequence represents a sequence of actions to execute. | Yes | No |
|
||
|
|
| <code>NewActionSequence</code> | <code>func NewActionSequence() *ActionSequence</code> | <code>dappco.re/go/core/webview</code> | NewActionSequence creates a new action sequence. | Yes | No |
|
||
|
|
| <code>ActionSequence.Add</code> | <code>func (s *ActionSequence) Add(action Action) *ActionSequence</code> | <code>dappco.re/go/core/webview</code> | Add adds an action to the sequence. | Yes | No |
|
||
|
|
| <code>ActionSequence.Click</code> | <code>func (s *ActionSequence) Click(selector string) *ActionSequence</code> | <code>dappco.re/go/core/webview</code> | Click adds a click action. | Yes | No |
|
||
|
|
| <code>ActionSequence.Type</code> | <code>func (s *ActionSequence) Type(selector, text string) *ActionSequence</code> | <code>dappco.re/go/core/webview</code> | Type adds a type action. | Yes | No |
|
||
|
|
| <code>ActionSequence.Navigate</code> | <code>func (s *ActionSequence) Navigate(url string) *ActionSequence</code> | <code>dappco.re/go/core/webview</code> | Navigate adds a navigate action. | Yes | No |
|
||
|
|
| <code>ActionSequence.Wait</code> | <code>func (s *ActionSequence) Wait(d time.Duration) *ActionSequence</code> | <code>dappco.re/go/core/webview</code> | Wait adds a wait action. | Yes | No |
|
||
|
|
| <code>ActionSequence.WaitForSelector</code> | <code>func (s *ActionSequence) WaitForSelector(selector string) *ActionSequence</code> | <code>dappco.re/go/core/webview</code> | WaitForSelector adds a wait for selector action. | Yes | No |
|
||
|
|
| <code>ActionSequence.Execute</code> | <code>func (s *ActionSequence) Execute(ctx context.Context, wv *Webview) error</code> | <code>dappco.re/go/core/webview</code> | Execute executes all actions in the sequence. | No | No |
|
||
|
|
| <code>Webview.UploadFile</code> | <code>func (wv *Webview) UploadFile(selector string, filePaths []string) error</code> | <code>dappco.re/go/core/webview</code> | UploadFile uploads a file to a file input element. | No | No |
|
||
|
|
| <code>Webview.DragAndDrop</code> | <code>func (wv *Webview) DragAndDrop(sourceSelector, targetSelector string) error</code> | <code>dappco.re/go/core/webview</code> | DragAndDrop performs a drag and drop operation. | No | No |
|
||
|
|
| <code>AngularHelper</code> | <code>AngularHelper struct { // contains filtered or unexported fields }</code> | <code>dappco.re/go/core/webview</code> | AngularHelper provides Angular-specific testing utilities. | Yes | No |
|
||
|
|
| <code>NewAngularHelper</code> | <code>func NewAngularHelper(wv *Webview) *AngularHelper</code> | <code>dappco.re/go/core/webview</code> | NewAngularHelper creates a new Angular helper for the webview. | Yes | No |
|
||
|
|
| <code>AngularHelper.SetTimeout</code> | <code>func (ah *AngularHelper) SetTimeout(d time.Duration)</code> | <code>dappco.re/go/core/webview</code> | SetTimeout sets the default timeout for Angular operations. | No | No |
|
||
|
|
| <code>AngularHelper.WaitForAngular</code> | <code>func (ah *AngularHelper) WaitForAngular() error</code> | <code>dappco.re/go/core/webview</code> | WaitForAngular waits for Angular to finish all pending operations. | No | No |
|
||
|
|
| <code>AngularHelper.NavigateByRouter</code> | <code>func (ah *AngularHelper) NavigateByRouter(path string) error</code> | <code>dappco.re/go/core/webview</code> | NavigateByRouter navigates using Angular Router. | No | No |
|
||
|
|
| <code>AngularHelper.GetRouterState</code> | <code>func (ah *AngularHelper) GetRouterState() (*AngularRouterState, error)</code> | <code>dappco.re/go/core/webview</code> | GetRouterState returns the current Angular router state. | No | No |
|
||
|
|
| <code>AngularRouterState</code> | <code>AngularRouterState struct { URL string `json:"url"` Fragment string `json:"fragment,omitempty"` Params map[string]string `json:"params,omitempty"` QueryParams map[string]string `json:"queryParams,omitempty"` }</code> | <code>dappco.re/go/core/webview</code> | AngularRouterState represents Angular router state. | Yes | No |
|
||
|
|
| <code>AngularHelper.GetComponentProperty</code> | <code>func (ah *AngularHelper) GetComponentProperty(selector, propertyName string) (any, error)</code> | <code>dappco.re/go/core/webview</code> | GetComponentProperty gets a property from an Angular component. | No | No |
|
||
|
|
| <code>AngularHelper.SetComponentProperty</code> | <code>func (ah *AngularHelper) SetComponentProperty(selector, propertyName string, value any) error</code> | <code>dappco.re/go/core/webview</code> | SetComponentProperty sets a property on an Angular component. | No | No |
|
||
|
|
| <code>AngularHelper.CallComponentMethod</code> | <code>func (ah *AngularHelper) CallComponentMethod(selector, methodName string, args ...any) (any, error)</code> | <code>dappco.re/go/core/webview</code> | CallComponentMethod calls a method on an Angular component. | No | No |
|
||
|
|
| <code>AngularHelper.TriggerChangeDetection</code> | <code>func (ah *AngularHelper) TriggerChangeDetection() error</code> | <code>dappco.re/go/core/webview</code> | TriggerChangeDetection manually triggers Angular change detection. | No | No |
|
||
|
|
| <code>AngularHelper.GetService</code> | <code>func (ah *AngularHelper) GetService(serviceName string) (any, error)</code> | <code>dappco.re/go/core/webview</code> | GetService gets an Angular service by token name. | No | No |
|
||
|
|
| <code>AngularHelper.WaitForComponent</code> | <code>func (ah *AngularHelper) WaitForComponent(selector string) error</code> | <code>dappco.re/go/core/webview</code> | WaitForComponent waits for an Angular component to be present. | No | No |
|
||
|
|
| <code>AngularHelper.DispatchEvent</code> | <code>func (ah *AngularHelper) DispatchEvent(selector, eventName string, detail any) error</code> | <code>dappco.re/go/core/webview</code> | DispatchEvent dispatches a custom event on an element. | No | No |
|
||
|
|
| <code>AngularHelper.GetNgModel</code> | <code>func (ah *AngularHelper) GetNgModel(selector string) (any, error)</code> | <code>dappco.re/go/core/webview</code> | GetNgModel gets the value of an ngModel-bound input. | No | No |
|
||
|
|
| <code>AngularHelper.SetNgModel</code> | <code>func (ah *AngularHelper) SetNgModel(selector string, value any) error</code> | <code>dappco.re/go/core/webview</code> | SetNgModel sets the value of an ngModel-bound input. | Yes | No |
|
||
|
|
| <code>CDPClient</code> | <code>CDPClient struct { // contains filtered or unexported fields }</code> | <code>dappco.re/go/core/webview</code> | CDPClient handles communication with Chrome DevTools Protocol via WebSocket. | Yes | No |
|
||
|
|
| <code>TargetInfo</code> | <code>TargetInfo struct { ID string `json:"id"` Type string `json:"type"` Title string `json:"title"` URL string `json:"url"` WebSocketDebuggerURL string `json:"webSocketDebuggerUrl"` }</code> | <code>dappco.re/go/core/webview</code> | TargetInfo represents Chrome DevTools target information. | Yes | No |
|
||
|
|
| <code>NewCDPClient</code> | <code>func NewCDPClient(debugURL string) (*CDPClient, error)</code> | <code>dappco.re/go/core/webview</code> | NewCDPClient creates a new CDP client connected to the given debug URL. | Yes | Yes |
|
||
|
|
| <code>CDPClient.Close</code> | <code>func (c *CDPClient) Close() error</code> | <code>dappco.re/go/core/webview</code> | Close closes the CDP connection. | Yes | No |
|
||
|
|
| <code>CDPClient.Call</code> | <code>func (c *CDPClient) Call(ctx context.Context, method string, params map[string]any) (map[string]any, error)</code> | <code>dappco.re/go/core/webview</code> | Call sends a CDP method call and waits for the response. | Yes | No |
|
||
|
|
| <code>CDPClient.OnEvent</code> | <code>func (c *CDPClient) OnEvent(method string, handler func(map[string]any))</code> | <code>dappco.re/go/core/webview</code> | OnEvent registers a handler for CDP events. | Yes | No |
|
||
|
|
| <code>CDPClient.Send</code> | <code>func (c *CDPClient) Send(method string, params map[string]any) error</code> | <code>dappco.re/go/core/webview</code> | Send sends a fire-and-forget CDP message (no response expected). | No | No |
|
||
|
|
| <code>CDPClient.DebugURL</code> | <code>func (c *CDPClient) DebugURL() string</code> | <code>dappco.re/go/core/webview</code> | DebugURL returns the debug HTTP URL. | No | No |
|
||
|
|
| <code>CDPClient.WebSocketURL</code> | <code>func (c *CDPClient) WebSocketURL() string</code> | <code>dappco.re/go/core/webview</code> | WebSocketURL returns the WebSocket URL being used. | No | No |
|
||
|
|
| <code>CDPClient.NewTab</code> | <code>func (c *CDPClient) NewTab(url string) (*CDPClient, error)</code> | <code>dappco.re/go/core/webview</code> | NewTab creates a new browser tab and returns a new CDPClient connected to it. | No | No |
|
||
|
|
| <code>CDPClient.CloseTab</code> | <code>func (c *CDPClient) CloseTab() error</code> | <code>dappco.re/go/core/webview</code> | CloseTab closes the current tab (target). | Yes | No |
|
||
|
|
| <code>ListTargets</code> | <code>func ListTargets(debugURL string) ([]TargetInfo, error)</code> | <code>dappco.re/go/core/webview</code> | ListTargets returns all available targets. | No | No |
|
||
|
|
| <code>ListTargetsAll</code> | <code>func ListTargetsAll(debugURL string) iter.Seq[TargetInfo]</code> | <code>dappco.re/go/core/webview</code> | ListTargetsAll returns an iterator over all available targets. | No | No |
|
||
|
|
| <code>GetVersion</code> | <code>func GetVersion(debugURL string) (map[string]string, error)</code> | <code>dappco.re/go/core/webview</code> | GetVersion returns Chrome version information. | No | No |
|
||
|
|
| <code>ConsoleWatcher</code> | <code>ConsoleWatcher struct { // contains filtered or unexported fields }</code> | <code>dappco.re/go/core/webview</code> | ConsoleWatcher provides advanced console message watching capabilities. | Yes | No |
|
||
|
|
| <code>ConsoleFilter</code> | <code>ConsoleFilter struct { Type string // Filter by type (log, warn, error, info, debug), empty for all Pattern string // Filter by text pattern (substring match) }</code> | <code>dappco.re/go/core/webview</code> | ConsoleFilter filters console messages. | Yes | No |
|
||
|
|
| <code>ConsoleHandler</code> | <code>ConsoleHandler func(msg ConsoleMessage)</code> | <code>dappco.re/go/core/webview</code> | ConsoleHandler is called when a matching console message is received. | Yes | No |
|
||
|
|
| <code>NewConsoleWatcher</code> | <code>func NewConsoleWatcher(wv *Webview) *ConsoleWatcher</code> | <code>dappco.re/go/core/webview</code> | NewConsoleWatcher creates a new console watcher for the webview. | No | No |
|
||
|
|
| <code>ConsoleWatcher.AddFilter</code> | <code>func (cw *ConsoleWatcher) AddFilter(filter ConsoleFilter)</code> | <code>dappco.re/go/core/webview</code> | AddFilter adds a filter to the watcher. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.ClearFilters</code> | <code>func (cw *ConsoleWatcher) ClearFilters()</code> | <code>dappco.re/go/core/webview</code> | ClearFilters removes all filters. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.AddHandler</code> | <code>func (cw *ConsoleWatcher) AddHandler(handler ConsoleHandler)</code> | <code>dappco.re/go/core/webview</code> | AddHandler adds a handler for console messages. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.SetLimit</code> | <code>func (cw *ConsoleWatcher) SetLimit(limit int)</code> | <code>dappco.re/go/core/webview</code> | SetLimit sets the maximum number of messages to retain. | No | No |
|
||
|
|
| <code>ConsoleWatcher.Messages</code> | <code>func (cw *ConsoleWatcher) Messages() []ConsoleMessage</code> | <code>dappco.re/go/core/webview</code> | Messages returns all captured messages. | No | No |
|
||
|
|
| <code>ConsoleWatcher.MessagesAll</code> | <code>func (cw *ConsoleWatcher) MessagesAll() iter.Seq[ConsoleMessage]</code> | <code>dappco.re/go/core/webview</code> | MessagesAll returns an iterator over all captured messages. | No | No |
|
||
|
|
| <code>ConsoleWatcher.FilteredMessages</code> | <code>func (cw *ConsoleWatcher) FilteredMessages() []ConsoleMessage</code> | <code>dappco.re/go/core/webview</code> | FilteredMessages returns messages matching the current filters. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.FilteredMessagesAll</code> | <code>func (cw *ConsoleWatcher) FilteredMessagesAll() iter.Seq[ConsoleMessage]</code> | <code>dappco.re/go/core/webview</code> | FilteredMessagesAll returns an iterator over messages matching the current filters. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.Errors</code> | <code>func (cw *ConsoleWatcher) Errors() []ConsoleMessage</code> | <code>dappco.re/go/core/webview</code> | Errors returns all error messages. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.ErrorsAll</code> | <code>func (cw *ConsoleWatcher) ErrorsAll() iter.Seq[ConsoleMessage]</code> | <code>dappco.re/go/core/webview</code> | ErrorsAll returns an iterator over all error messages. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.Warnings</code> | <code>func (cw *ConsoleWatcher) Warnings() []ConsoleMessage</code> | <code>dappco.re/go/core/webview</code> | Warnings returns all warning messages. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.WarningsAll</code> | <code>func (cw *ConsoleWatcher) WarningsAll() iter.Seq[ConsoleMessage]</code> | <code>dappco.re/go/core/webview</code> | WarningsAll returns an iterator over all warning messages. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.Clear</code> | <code>func (cw *ConsoleWatcher) Clear()</code> | <code>dappco.re/go/core/webview</code> | Clear clears all captured messages. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.WaitForMessage</code> | <code>func (cw *ConsoleWatcher) WaitForMessage(ctx context.Context, filter ConsoleFilter) (*ConsoleMessage, error)</code> | <code>dappco.re/go/core/webview</code> | WaitForMessage waits for a message matching the filter. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.WaitForError</code> | <code>func (cw *ConsoleWatcher) WaitForError(ctx context.Context) (*ConsoleMessage, error)</code> | <code>dappco.re/go/core/webview</code> | WaitForError waits for an error message. | No | No |
|
||
|
|
| <code>ConsoleWatcher.HasErrors</code> | <code>func (cw *ConsoleWatcher) HasErrors() bool</code> | <code>dappco.re/go/core/webview</code> | HasErrors returns true if there are any error messages. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.Count</code> | <code>func (cw *ConsoleWatcher) Count() int</code> | <code>dappco.re/go/core/webview</code> | Count returns the number of captured messages. | Yes | No |
|
||
|
|
| <code>ConsoleWatcher.ErrorCount</code> | <code>func (cw *ConsoleWatcher) ErrorCount() int</code> | <code>dappco.re/go/core/webview</code> | ErrorCount returns the number of error messages. | Yes | No |
|
||
|
|
| <code>ExceptionInfo</code> | <code>ExceptionInfo struct { Text string `json:"text"` LineNumber int `json:"lineNumber"` ColumnNumber int `json:"columnNumber"` URL string `json:"url"` StackTrace string `json:"stackTrace"` Timestamp time.Time `json:"timestamp"` }</code> | <code>dappco.re/go/core/webview</code> | ExceptionInfo represents information about a JavaScript exception. | Yes | No |
|
||
|
|
| <code>ExceptionWatcher</code> | <code>ExceptionWatcher struct { // contains filtered or unexported fields }</code> | <code>dappco.re/go/core/webview</code> | ExceptionWatcher watches for JavaScript exceptions. | Yes | No |
|
||
|
|
| <code>NewExceptionWatcher</code> | <code>func NewExceptionWatcher(wv *Webview) *ExceptionWatcher</code> | <code>dappco.re/go/core/webview</code> | NewExceptionWatcher creates a new exception watcher. | No | No |
|
||
|
|
| <code>ExceptionWatcher.Exceptions</code> | <code>func (ew *ExceptionWatcher) Exceptions() []ExceptionInfo</code> | <code>dappco.re/go/core/webview</code> | Exceptions returns all captured exceptions. | Yes | No |
|
||
|
|
| <code>ExceptionWatcher.ExceptionsAll</code> | <code>func (ew *ExceptionWatcher) ExceptionsAll() iter.Seq[ExceptionInfo]</code> | <code>dappco.re/go/core/webview</code> | ExceptionsAll returns an iterator over all captured exceptions. | Yes | No |
|
||
|
|
| <code>ExceptionWatcher.Clear</code> | <code>func (ew *ExceptionWatcher) Clear()</code> | <code>dappco.re/go/core/webview</code> | Clear clears all captured exceptions. | Yes | No |
|
||
|
|
| <code>ExceptionWatcher.HasExceptions</code> | <code>func (ew *ExceptionWatcher) HasExceptions() bool</code> | <code>dappco.re/go/core/webview</code> | HasExceptions returns true if there are any exceptions. | Yes | No |
|
||
|
|
| <code>ExceptionWatcher.Count</code> | <code>func (ew *ExceptionWatcher) Count() int</code> | <code>dappco.re/go/core/webview</code> | Count returns the number of exceptions. | Yes | No |
|
||
|
|
| <code>ExceptionWatcher.AddHandler</code> | <code>func (ew *ExceptionWatcher) AddHandler(handler func(ExceptionInfo))</code> | <code>dappco.re/go/core/webview</code> | AddHandler adds a handler for exceptions. | Yes | No |
|
||
|
|
| <code>ExceptionWatcher.WaitForException</code> | <code>func (ew *ExceptionWatcher) WaitForException(ctx context.Context) (*ExceptionInfo, error)</code> | <code>dappco.re/go/core/webview</code> | WaitForException waits for an exception to be thrown. | Yes | No |
|
||
|
|
| <code>FormatConsoleOutput</code> | <code>func FormatConsoleOutput(messages []ConsoleMessage) string</code> | <code>dappco.re/go/core/webview</code> | FormatConsoleOutput formats console messages for display. | Yes | No |
|
||
|
|
| <code>Webview</code> | <code>Webview struct { // contains filtered or unexported fields }</code> | <code>dappco.re/go/core/webview</code> | Webview represents a connection to a Chrome DevTools Protocol endpoint. | Yes | No |
|
||
|
|
| <code>ConsoleMessage</code> | <code>ConsoleMessage struct { Type string `json:"type"` // log, warn, error, info, debug Text string `json:"text"` // Message text Timestamp time.Time `json:"timestamp"` // When the message was logged URL string `json:"url"` // Source URL Line int `json:"line"` // Source line number Column int `json:"column"` // Source column number }</code> | <code>dappco.re/go/core/webview</code> | ConsoleMessage represents a captured console log message. | Yes | No |
|
||
|
|
| <code>ElementInfo</code> | <code>ElementInfo struct { NodeID int `json:"nodeId"` TagName string `json:"tagName"` Attributes map[string]string `json:"attributes"` InnerHTML string `json:"innerHTML,omitempty"` InnerText string `json:"innerText,omitempty"` BoundingBox *BoundingBox `json:"boundingBox,omitempty"` }</code> | <code>dappco.re/go/core/webview</code> | ElementInfo represents information about a DOM element. | Yes | No |
|
||
|
|
| <code>BoundingBox</code> | <code>BoundingBox struct { X float64 `json:"x"` Y float64 `json:"y"` Width float64 `json:"width"` Height float64 `json:"height"` }</code> | <code>dappco.re/go/core/webview</code> | BoundingBox represents the bounding rectangle of an element. | Yes | No |
|
||
|
|
| <code>Option</code> | <code>Option func(*Webview) error</code> | <code>dappco.re/go/core/webview</code> | Option configures a Webview instance. | Yes | No |
|
||
|
|
| <code>WithDebugURL</code> | <code>func WithDebugURL(url string) Option</code> | <code>dappco.re/go/core/webview</code> | WithDebugURL sets the Chrome DevTools debugging URL. | Yes | Yes |
|
||
|
|
| <code>WithTimeout</code> | <code>func WithTimeout(d time.Duration) Option</code> | <code>dappco.re/go/core/webview</code> | WithTimeout sets the default timeout for operations. | Yes | No |
|
||
|
|
| <code>WithConsoleLimit</code> | <code>func WithConsoleLimit(limit int) Option</code> | <code>dappco.re/go/core/webview</code> | WithConsoleLimit sets the maximum number of console messages to retain. | Yes | No |
|
||
|
|
| <code>New</code> | <code>func New(opts ...Option) (*Webview, error)</code> | <code>dappco.re/go/core/webview</code> | New creates a new Webview instance with the given options. | Yes | No |
|
||
|
|
| <code>Webview.Close</code> | <code>func (wv *Webview) Close() error</code> | <code>dappco.re/go/core/webview</code> | Close closes the Webview connection. | No | No |
|
||
|
|
| <code>Webview.Navigate</code> | <code>func (wv *Webview) Navigate(url string) error</code> | <code>dappco.re/go/core/webview</code> | Navigate navigates to the specified URL. | No | No |
|
||
|
|
| <code>Webview.Click</code> | <code>func (wv *Webview) Click(selector string) error</code> | <code>dappco.re/go/core/webview</code> | Click clicks on an element matching the selector. | No | No |
|
||
|
|
| <code>Webview.Type</code> | <code>func (wv *Webview) Type(selector, text string) error</code> | <code>dappco.re/go/core/webview</code> | Type types text into an element matching the selector. | No | No |
|
||
|
|
| <code>Webview.QuerySelector</code> | <code>func (wv *Webview) QuerySelector(selector string) (*ElementInfo, error)</code> | <code>dappco.re/go/core/webview</code> | QuerySelector finds an element by CSS selector and returns its information. | No | No |
|
||
|
|
| <code>Webview.QuerySelectorAll</code> | <code>func (wv *Webview) QuerySelectorAll(selector string) ([]*ElementInfo, error)</code> | <code>dappco.re/go/core/webview</code> | QuerySelectorAll finds all elements matching the selector. | No | No |
|
||
|
|
| <code>Webview.QuerySelectorAllAll</code> | <code>func (wv *Webview) QuerySelectorAllAll(selector string) iter.Seq[*ElementInfo]</code> | <code>dappco.re/go/core/webview</code> | QuerySelectorAllAll returns an iterator over all elements matching the selector. | No | No |
|
||
|
|
| <code>Webview.GetConsole</code> | <code>func (wv *Webview) GetConsole() []ConsoleMessage</code> | <code>dappco.re/go/core/webview</code> | GetConsole returns captured console messages. | No | No |
|
||
|
|
| <code>Webview.GetConsoleAll</code> | <code>func (wv *Webview) GetConsoleAll() iter.Seq[ConsoleMessage]</code> | <code>dappco.re/go/core/webview</code> | GetConsoleAll returns an iterator over captured console messages. | No | No |
|
||
|
|
| <code>Webview.ClearConsole</code> | <code>func (wv *Webview) ClearConsole()</code> | <code>dappco.re/go/core/webview</code> | ClearConsole clears captured console messages. | No | No |
|
||
|
|
| <code>Webview.Screenshot</code> | <code>func (wv *Webview) Screenshot() ([]byte, error)</code> | <code>dappco.re/go/core/webview</code> | Screenshot captures a screenshot and returns it as PNG bytes. | No | No |
|
||
|
|
| <code>Webview.Evaluate</code> | <code>func (wv *Webview) Evaluate(script string) (any, error)</code> | <code>dappco.re/go/core/webview</code> | Evaluate executes JavaScript and returns the result. | No | No |
|
||
|
|
| <code>Webview.WaitForSelector</code> | <code>func (wv *Webview) WaitForSelector(selector string) error</code> | <code>dappco.re/go/core/webview</code> | WaitForSelector waits for an element matching the selector to appear. | No | No |
|
||
|
|
| <code>Webview.GetURL</code> | <code>func (wv *Webview) GetURL() (string, error)</code> | <code>dappco.re/go/core/webview</code> | GetURL returns the current page URL. | No | No |
|
||
|
|
| <code>Webview.GetTitle</code> | <code>func (wv *Webview) GetTitle() (string, error)</code> | <code>dappco.re/go/core/webview</code> | GetTitle returns the current page title. | No | No |
|
||
|
|
| <code>Webview.GetHTML</code> | <code>func (wv *Webview) GetHTML(selector string) (string, error)</code> | <code>dappco.re/go/core/webview</code> | GetHTML returns the outer HTML of an element or the whole document. | No | No |
|
||
|
|
| <code>Webview.SetViewport</code> | <code>func (wv *Webview) SetViewport(width, height int) error</code> | <code>dappco.re/go/core/webview</code> | SetViewport sets the viewport size. | No | No |
|
||
|
|
| <code>Webview.SetUserAgent</code> | <code>func (wv *Webview) SetUserAgent(userAgent string) error</code> | <code>dappco.re/go/core/webview</code> | SetUserAgent sets the user agent string. | No | No |
|
||
|
|
| <code>Webview.Reload</code> | <code>func (wv *Webview) Reload() error</code> | <code>dappco.re/go/core/webview</code> | Reload reloads the current page. | No | No |
|
||
|
|
| <code>Webview.GoBack</code> | <code>func (wv *Webview) GoBack() error</code> | <code>dappco.re/go/core/webview</code> | GoBack navigates back in history. | No | No |
|
||
|
|
| <code>Webview.GoForward</code> | <code>func (wv *Webview) GoForward() error</code> | <code>dappco.re/go/core/webview</code> | GoForward navigates forward in history. | No | No |
|