recorder

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package recorder captures raw browser events (navigation, clicks, input, keys) in a visible Chromium on the user's machine. It only collects: turning the events into check steps happens on the server (import job "checks-record"), so no step or selector logic ships in the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	Tag       string `json:"tag"`
	ID        string `json:"id"`
	TestID    string `json:"testid"`
	AriaLabel string `json:"aria"`
	Path      string `json:"path"`
	Password  bool   `json:"password"`
}

Element is what the page reports about the element an event hit.

type Event

type Event struct {
	Type  string  `json:"type"`
	URL   string  `json:"url"`
	El    Element `json:"el"`
	Value string  `json:"value"`
	Key   string  `json:"key"`
}

Event is one user action seen in the page (type navigate, click, input or key).

func Record

func Record(ctx context.Context, startURL, execPath string) ([]Event, error)

Record opens a visible Chromium on startURL and returns the events when ctx ends (Ctrl+C in wtctl). Values typed into password fields are dropped here.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL