Versions in this module Expand all Collapse all v0 v0.5.0 Mar 23, 2026 Changes in this version + type AccessibilitySnapshotInput struct + InterestingOnly *bool + Root string + type AccessibilitySnapshotOutput struct + Snapshot interface{} + type AddInitScriptInput struct + Script string + type AddInitScriptOutput struct + Message string + type AddScriptInput struct + Source string + type AddScriptOutput struct + Message string + type AddStyleInput struct + Source string + type AddStyleOutput struct + Message string + type AssertElementInput struct + Selector string + TimeoutMS int + type AssertElementOutput struct + Found bool + Message string + type AssertTextInput struct + Selector string + Text string + type AssertTextOutput struct + Found bool + Message string + type BackInput struct + type BackOutput struct + Message string + type BringToFrontInput struct + type BringToFrontOutput struct + Message string + type BrowserLaunchInput struct + Headless bool + type BrowserLaunchOutput struct + Message string + type BrowserQuitInput struct + type BrowserQuitOutput struct + Message string + type CheckInput struct + Selector string + TimeoutMS int + type CheckOutput struct + Message string + type ClearConsoleMessagesInput struct + type ClearConsoleMessagesOutput struct + Message string + type ClearCookiesInput struct + type ClearCookiesOutput struct + Message string + type ClearInput struct + Selector string + TimeoutMS int + type ClearNetworkRequestsInput struct + type ClearNetworkRequestsOutput struct + Message string + type ClearOutput struct + Message string + type ClearRecordingInput struct + type ClearRecordingOutput struct + Message string + type ClearStorageInput struct + type ClearStorageOutput struct + Message string + type ClickInput struct + Selector string + TimeoutMS int + type ClickOutput struct + Message string + type ClosePageInput struct + type ClosePageOutput struct + Message string + type CloseTabInput struct + ID string + Index *int + type CloseTabOutput struct + Message string + type Config struct + DefaultTimeout time.Duration + Headless bool + InitScripts []string + Project string + func DefaultConfig() Config + type ConsoleMessageInfo struct + Args []string + Line int + Text string + Type string + URL string + type CookieOutput struct + Domain string + Expires float64 + HTTPOnly bool + Name string + Path string + SameSite string + Secure bool + Value string + type DblClickInput struct + Selector string + TimeoutMS int + type DblClickOutput struct + Message string + type DeleteCookieInput struct + Domain string + Name string + Path string + type DeleteCookieOutput struct + Message string + type DispatchEventInput struct + EventInit map[string]any + EventType string + Selector string + TimeoutMS int + type DispatchEventOutput struct + Message string + type DragToInput struct + SourceSelector string + TargetSelector string + TimeoutMS int + type DragToOutput struct + Message string + type ElementEvalInput struct + Function string + Selector string + TimeoutMS int + type ElementEvalOutput struct + Result any + type ElementScreenshotInput struct + Selector string + TimeoutMS int + type ElementScreenshotOutput struct + Data string + type EmulateMediaInput struct + ColorScheme string + Contrast string + ForcedColors string + Media string + ReducedMotion string + type EmulateMediaOutput struct + Message string + Settings []string + type EvaluateInput struct + Script string + type EvaluateOutput struct + Result any + type ExportScriptInput struct + Format string + type ExportScriptOutput struct + Format string + Script string + StepCount int + type FillFormInput struct + Fields []FormField + TimeoutMS int + type FillFormOutput struct + Errors []string + Filled int + Message string + type FillInput struct + Selector string + TimeoutMS int + Value string + type FillOutput struct + Message string + type FocusInput struct + Selector string + TimeoutMS int + type FocusOutput struct + Message string + type FormField struct + Selector string + Value string + type ForwardInput struct + type ForwardOutput struct + Message string + type FrameInfoOutput struct + Name string + URL string + type GenerateLocatorInput struct + Selector string + Strategy string + TimeoutMS int + type GenerateLocatorOutput struct + Locator string + Metadata map[string]string + Strategy string + type GetAttributeInput struct + Name string + Selector string + TimeoutMS int + type GetAttributeOutput struct + Value string + type GetBoundingBoxInput struct + Selector string + TimeoutMS int + type GetBoundingBoxOutput struct + Height float64 + Width float64 + X float64 + Y float64 + type GetConfigInput struct + type GetConfigOutput struct + BrowserLaunched bool + DefaultTimeoutMS int64 + Headless bool + Project string + type GetConsoleMessagesInput struct + Clear bool + Level string + type GetConsoleMessagesOutput struct + Count int + Messages []ConsoleMessageInfo + type GetContentInput struct + type GetContentOutput struct + Content string + type GetCookiesInput struct + URLs []string + type GetCookiesOutput struct + Cookies []CookieOutput + type GetDialogInput struct + type GetDialogOutput struct + DefaultValue string + DialogType string + HasDialog bool + Message string + type GetFramesInput struct + type GetFramesOutput struct + Frames []FrameInfoOutput + type GetInnerHTMLInput struct + Selector string + TimeoutMS int + type GetInnerHTMLOutput struct + HTML string + type GetInnerTextInput struct + Selector string + TimeoutMS int + type GetInnerTextOutput struct + Text string + type GetLabelInput struct + Selector string + TimeoutMS int + type GetLabelOutput struct + Label string + type GetNetworkRequestsInput struct + Clear bool + Method string + ResourceType string + URLPattern string + type GetNetworkRequestsOutput struct + Count int + Requests []NetworkRequestInfo + type GetOuterHTMLInput struct + Selector string + TimeoutMS int + type GetOuterHTMLOutput struct + HTML string + type GetPagesInput struct + type GetPagesOutput struct + Count int + type GetRoleInput struct + Selector string + TimeoutMS int + type GetRoleOutput struct + Role string + type GetStorageStateInput struct + type GetStorageStateOutput struct + State string + type GetTestReportInput struct + Format string + type GetTestReportOutput struct + Report string + type GetTextInput struct + Selector string + TimeoutMS int + type GetTextOutput struct + Text string + type GetTitleInput struct + type GetTitleOutput struct + Title string + type GetURLInput struct + type GetURLOutput struct + URL string + type GetValueInput struct + Selector string + TimeoutMS int + type GetValueOutput struct + Value string + type GetViewportInput struct + type GetViewportOutput struct + Height int + Width int + type HandleDialogInput struct + Action string + PromptText string + type HandleDialogOutput struct + Action string + Message string + type HoverInput struct + Selector string + TimeoutMS int + type HoverOutput struct + Message string + type IsCheckedInput struct + Selector string + TimeoutMS int + type IsCheckedOutput struct + Checked bool + type IsEditableInput struct + Selector string + TimeoutMS int + type IsEditableOutput struct + Editable bool + type IsEnabledInput struct + Selector string + TimeoutMS int + type IsEnabledOutput struct + Enabled bool + type IsHiddenInput struct + Selector string + TimeoutMS int + type IsHiddenOutput struct + Hidden bool + type IsVisibleInput struct + Selector string + TimeoutMS int + type IsVisibleOutput struct + Visible bool + type KeyboardDownInput struct + Key string + type KeyboardDownOutput struct + Message string + type KeyboardPressInput struct + Key string + type KeyboardPressOutput struct + Message string + type KeyboardTypeInput struct + Text string + type KeyboardTypeOutput struct + Message string + type KeyboardUpInput struct + Key string + type KeyboardUpOutput struct + Message string + type ListTabsInput struct + type ListTabsOutput struct + Count int + CurrentTab int + Tabs []TabInfo + type LocalStorageClearInput struct + type LocalStorageClearOutput struct + Message string + type LocalStorageDeleteInput struct + Key string + type LocalStorageDeleteOutput struct + Message string + type LocalStorageGetInput struct + Key string + type LocalStorageGetOutput struct + Key string + Value *string + type LocalStorageListInput struct + type LocalStorageListOutput struct + Count int + Items map[string]string + type LocalStorageSetInput struct + Key string + Value string + type LocalStorageSetOutput struct + Message string + type MouseClickInput struct + Button string + ClickCount int + X float64 + Y float64 + type MouseClickOutput struct + Message string + type MouseDownInput struct + Button string + type MouseDownOutput struct + Message string + type MouseDragInput struct + EndX float64 + EndY float64 + StartX float64 + StartY float64 + Steps int + type MouseDragOutput struct + Message string + type MouseMoveInput struct + X float64 + Y float64 + type MouseMoveOutput struct + Message string + type MouseUpInput struct + Button string + type MouseUpOutput struct + Message string + type MouseWheelInput struct + DeltaX float64 + DeltaY float64 + type MouseWheelOutput struct + Message string + type NavigateInput struct + URL string + type NavigateOutput struct + Title string + URL string + type NetworkRequestInfo struct + Method string + ResourceType string + ResponseSize int64 + Status int + StatusText string + URL string + type NetworkStateSetInput struct + Offline bool + type NetworkStateSetOutput struct + Message string + Offline bool + type NewPageInput struct + type NewPageOutput struct + Message string + type PDFInput struct + Format string + Landscape bool + PrintBackground bool + Scale float64 + type PDFOutput struct + Data string + type PauseForHumanInput struct + Message string + TimeoutMS int + type PauseForHumanOutput struct + Message string + type PressInput struct + Key string + Selector string + TimeoutMS int + type PressOutput struct + Message string + type Recorder struct + func NewRecorder() *Recorder + func (r *Recorder) AddStep(step script.Step) + func (r *Recorder) Clear() + func (r *Recorder) Export() *script.Script + func (r *Recorder) ExportJSON() ([]byte, error) + func (r *Recorder) IsRecording() bool + func (r *Recorder) RecordAccessibilityCheck(standard, failOn string) + func (r *Recorder) RecordAssertElement(selector string) + func (r *Recorder) RecordAssertText(selector, expected string) + func (r *Recorder) RecordAssertTitle(expected string) + func (r *Recorder) RecordAssertURL(expected string) + func (r *Recorder) RecordAssertVisible(selector string) + func (r *Recorder) RecordBack() + func (r *Recorder) RecordCheck(selector string) + func (r *Recorder) RecordClear(selector string) + func (r *Recorder) RecordClick(selector string) + func (r *Recorder) RecordDblClick(selector string) + func (r *Recorder) RecordDragTo(selector, target string) + func (r *Recorder) RecordEval(js string) + func (r *Recorder) RecordFill(selector, value string) + func (r *Recorder) RecordFocus(selector string) + func (r *Recorder) RecordForward() + func (r *Recorder) RecordHover(selector string) + func (r *Recorder) RecordKeyboardPress(key string) + func (r *Recorder) RecordKeyboardType(text string) + func (r *Recorder) RecordMouseClick(x, y float64) + func (r *Recorder) RecordMouseMove(x, y float64) + func (r *Recorder) RecordNavigate(url string) + func (r *Recorder) RecordPress(selector, key string) + func (r *Recorder) RecordReload() + func (r *Recorder) RecordScreenshot(file string, fullPage bool) + func (r *Recorder) RecordScrollIntoView(selector string) + func (r *Recorder) RecordSelect(selector, value string) + func (r *Recorder) RecordSetFiles(selector string, files []string) + func (r *Recorder) RecordSetViewport(width, height int) + func (r *Recorder) RecordTap(selector string) + func (r *Recorder) RecordType(selector, text string) + func (r *Recorder) RecordUncheck(selector string) + func (r *Recorder) RecordWait(duration string) + func (r *Recorder) RecordWaitForLoad(state string) + func (r *Recorder) RecordWaitForSelector(selector, state string) + func (r *Recorder) RecordWaitForURL(pattern string) + func (r *Recorder) Start(metadata RecorderMetadata) + func (r *Recorder) StepCount() int + func (r *Recorder) Steps() []script.Step + func (r *Recorder) Stop() + type RecorderMetadata struct + BaseURL string + Description string + Name string + type RecordingStatusInput struct + type RecordingStatusOutput struct + Recording bool + StepCount int + type ReloadInput struct + type ReloadOutput struct + Message string + type ResetSessionInput struct + type ResetSessionOutput struct + Message string + type RouteInfoOutput struct + ContentType string + Pattern string + Status int + type RouteInput struct + Body string + ContentType string + Headers map[string]string + Pattern string + Status int + type RouteListInput struct + type RouteListOutput struct + Count int + Routes []RouteInfoOutput + type RouteOutput struct + Message string + Pattern string + type ScreenshotInput struct + Format string + Path string + type ScreenshotOutput struct + Data string + Format string + Path string + type ScrollInput struct + Amount int + Direction string + Selector string + type ScrollIntoViewInput struct + Selector string + TimeoutMS int + type ScrollIntoViewOutput struct + Message string + type ScrollOutput struct + Message string + type SelectFrameInput struct + NameOrURL string + type SelectFrameOutput struct + Message string + Name string + URL string + type SelectMainFrameInput struct + type SelectMainFrameOutput struct + Message string + type SelectOptionInput struct + Indexes []int + Labels []string + Selector string + TimeoutMS int + Values []string + type SelectOptionOutput struct + Message string + type SelectTabInput struct + ID string + Index *int + type SelectTabOutput struct + Message string + Title string + URL string + type SemanticSelector struct + Alt string + Label string + Near string + Placeholder string + Role string + TestID string + Text string + Title string + XPath string + type Server struct + func NewServer(config Config) *Server + func (s *Server) Close(ctx context.Context) error + func (s *Server) Run(ctx context.Context) error + type Session struct + func NewSession(config SessionConfig) *Session + func (s *Session) ActiveContext() string + func (s *Session) CaptureContext(ctx context.Context) *report.StepContext + func (s *Session) CaptureScreenshot(ctx context.Context) *report.ScreenshotRef + func (s *Session) Close(ctx context.Context) error + func (s *Session) FindSimilarSelectors(ctx context.Context, selector string) []string + func (s *Session) GetTestResult() *report.TestResult + func (s *Session) IsLaunched() bool + func (s *Session) LaunchIfNeeded(ctx context.Context) error + func (s *Session) NextStepID(action string) string + func (s *Session) Pilot(ctx context.Context) (*webpilot.Pilot, error) + func (s *Session) RecordStep(result report.StepResult) + func (s *Session) Recorder() *Recorder + func (s *Session) Reset() + func (s *Session) SetActiveContext(contextID string) + func (s *Session) SetPilot(p *webpilot.Pilot) + func (s *Session) SetTarget(target string) + type SessionConfig struct + DefaultTimeout time.Duration + Headless bool + InitScripts []string + Project string + Target string + type SessionStorageClearInput struct + type SessionStorageClearOutput struct + Message string + type SessionStorageDeleteInput struct + Key string + type SessionStorageDeleteOutput struct + Message string + type SessionStorageGetInput struct + Key string + type SessionStorageGetOutput struct + Key string + Value *string + type SessionStorageListInput struct + type SessionStorageListOutput struct + Count int + Items map[string]string + type SessionStorageSetInput struct + Key string + Value string + type SessionStorageSetOutput struct + Message string + type SetContentInput struct + HTML string + type SetContentOutput struct + Message string + type SetCookieInput struct + Domain string + Expires float64 + HTTPOnly bool + Name string + Path string + SameSite string + Secure bool + URL string + Value string + type SetCookiesInput struct + Cookies []SetCookieInput + type SetCookiesOutput struct + Message string + type SetFilesInput struct + Files []string + Selector string + TimeoutMS int + type SetFilesOutput struct + Message string + type SetGeolocationInput struct + Accuracy float64 + Latitude float64 + Longitude float64 + type SetGeolocationOutput struct + Message string + type SetStorageStateInput struct + State string + type SetStorageStateOutput struct + Message string + type SetTargetInput struct + Target string + type SetTargetOutput struct + Message string + type SetViewportInput struct + Height int + Width int + type SetViewportOutput struct + Message string + type StartRecordingInput struct + BaseURL string + Description string + Name string + type StartRecordingOutput struct + Message string + type StartTraceChunkInput struct + Name string + Title string + type StartTraceChunkOutput struct + Message string + type StartTraceGroupInput struct + Location string + Name string + type StartTraceGroupOutput struct + Message string + type StartTraceInput struct + Name string + Screenshots bool + Snapshots bool + Sources bool + Title string + type StartTraceOutput struct + Message string + Name string + type StartVideoInput struct + Dir string + Height int + Width int + type StartVideoOutput struct + Message string + Path string + type StopRecordingInput struct + type StopRecordingOutput struct + Message string + StepCount int + type StopTraceChunkInput struct + Path string + type StopTraceChunkOutput struct + Data string + Message string + Path string + SizeKB int + type StopTraceGroupInput struct + type StopTraceGroupOutput struct + Message string + type StopTraceInput struct + Path string + type StopTraceOutput struct + Data string + Message string + Path string + SizeKB int + ViewHint string + type StopVideoInput struct + type StopVideoOutput struct + Message string + Path string + type TabInfo struct + ID string + Index int + Title string + URL string + type TapInput struct + Selector string + TimeoutMS int + type TapOutput struct + Message string + type TouchSwipeInput struct + EndX float64 + EndY float64 + StartX float64 + StartY float64 + type TouchSwipeOutput struct + Message string + type TouchTapInput struct + X float64 + Y float64 + type TouchTapOutput struct + Message string + type TypeInput struct + Selector string + Text string + TimeoutMS int + type TypeOutput struct + Message string + type UncheckInput struct + Selector string + TimeoutMS int + type UncheckOutput struct + Message string + type UnrouteInput struct + Pattern string + type UnrouteOutput struct + Message string + type VerifyCheckedInput struct + Checked bool + Selector string + TimeoutMS int + type VerifyCheckedOutput struct + Checked bool + Message string + Passed bool + type VerifyDisabledInput struct + Selector string + TimeoutMS int + type VerifyDisabledOutput struct + Message string + Passed bool + type VerifyEnabledInput struct + Selector string + TimeoutMS int + type VerifyEnabledOutput struct + Message string + Passed bool + type VerifyHiddenInput struct + Selector string + TimeoutMS int + type VerifyHiddenOutput struct + Message string + Passed bool + type VerifyListVisibleInput struct + Items []string + Selector string + TimeoutMS int + type VerifyListVisibleOutput struct + Found []string + Message string + Missing []string + Passed bool + type VerifyTextInput struct + Exact bool + Expected string + Selector string + TimeoutMS int + type VerifyTextOutput struct + Actual string + Message string + Passed bool + type VerifyValueInput struct + Expected string + Selector string + TimeoutMS int + type VerifyValueOutput struct + Actual string + Message string + Passed bool + type VerifyVisibleInput struct + Selector string + TimeoutMS int + type VerifyVisibleOutput struct + Message string + Passed bool + type WaitForFunctionInput struct + Function string + TimeoutMS int + type WaitForFunctionOutput struct + Message string + type WaitForLoadInput struct + State string + TimeoutMS int + type WaitForLoadOutput struct + Message string + type WaitForSelectorInput struct + Selector string + State string + TimeoutMS int + type WaitForSelectorOutput struct + Message string + type WaitForTextInput struct + Selector string + Text string + TimeoutMS int + type WaitForTextOutput struct + Message string + type WaitForURLInput struct + Pattern string + TimeoutMS int + type WaitForURLOutput struct + Message string + type WaitUntilInput struct + Selector string + State string + TimeoutMS int + type WaitUntilOutput struct + Message string