Chrome DevTools Protocol client for browser automation
Find a file
Snider a6304b8e29
Some checks failed
Test / test (push) Has been cancelled
Security Scan / security (push) Has been cancelled
refactor: AX compliance sweep — replace banned stdlib imports with core primitives
Replaced fmt, strings, sort, os, io, sync, encoding/json, path/filepath,
errors, log, reflect with core.Sprintf, core.E, core.Contains, core.Trim,
core.Split, core.Join, core.JoinPath, slices.Sort, c.Fs(), c.Lock(),
core.JSONMarshal, core.ReadAll and other CoreGO v0.8.0 primitives.

Framework boundary exceptions preserved where stdlib types are required
by external interfaces (Gin, net/http, CGo, Wails, bubbletea).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-13 09:32:01 +01:00
.core chore: add .core/ build and release configs 2026-03-06 18:52:37 +00:00
.forgejo/workflows ci: add Forgejo Actions test and security scan workflows 2026-02-23 03:28:08 +00:00
docs Merge pull request '[agent/codex] API contract extraction. For every exported type, function, ...' (#10) from agent/api-contract-extraction--for-every-expor into dev 2026-03-23 15:27:24 +00:00
specs docs: document exported API in specs RFC 2026-03-27 20:52:02 +00:00
.editorconfig chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:50 +00:00
.gitignore chore: add .core/ and .idea/ to .gitignore 2026-03-15 10:17:50 +00:00
.golangci.yml chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:50 +00:00
actions.go feat: upgrade to core v0.8.0-alpha.1, replace banned stdlib imports 2026-03-26 13:53:43 +00:00
angular.go feat: upgrade to core v0.8.0-alpha.1, replace banned stdlib imports 2026-03-26 13:53:43 +00:00
audit_issue2_test.go feat: upgrade to core v0.8.0-alpha.1, replace banned stdlib imports 2026-03-26 13:53:43 +00:00
cdp.go refactor: AX compliance sweep — replace banned stdlib imports with core primitives 2026-04-13 09:32:01 +01:00
CLAUDE.md chore: migrate to dappco.re vanity import path 2026-03-21 23:45:30 +00:00
console.go chore(webview): align console buffers with RFC defaults 2026-04-03 07:37:51 +00:00
CONTRIBUTING.md chore: add Go repo norms (badges, contributing, lint, taskfile, editorconfig) 2026-02-23 06:45:50 +00:00
go.mod feat: upgrade to core v0.8.0-alpha.1, replace banned stdlib imports 2026-03-26 13:53:43 +00:00
go.sum feat: upgrade to core v0.8.0-alpha.1, replace banned stdlib imports 2026-03-26 13:53:43 +00:00
README.md docs(api): add exported contract matrix 2026-03-23 15:27:05 +00:00
webview.go chore(webview): align console buffers with RFC defaults 2026-04-03 07:37:51 +00:00
webview_test.go feat(webview): populate element content fields 2026-04-01 04:47:46 +00:00

Go Reference License: EUPL-1.2 Go Version

go-webview

Chrome DevTools Protocol (CDP) client for browser automation, testing, and scraping. Connects to an externally managed Chrome or Chromium instance running with --remote-debugging-port=9222, providing navigation, DOM queries, click and type actions, console capture, JavaScript evaluation, screenshots, multi-tab support, viewport emulation, and a fluent ActionSequence builder. Includes Angular-specific helpers for Zone.js stability, router navigation, component introspection, and ngModel access.

Module: dappco.re/go/core/webview Licence: EUPL-1.2 Language: Go 1.25

Quick Start

import "dappco.re/go/core/webview"

wv, err := webview.New(webview.WithDebugURL("http://localhost:9222"))
defer wv.Close()

wv.Navigate("https://example.com")
wv.Click("#submit")
wv.Type("#input", "search term")
png, err := wv.Screenshot()

// Fluent action sequence
err = webview.NewActionSequence().
    Navigate("https://example.com").
    WaitForSelector("#login-form").
    Type("#email", "user@example.com").
    Click("#submit").
    Execute(ctx, wv)

Documentation

  • API Contract — exported API inventory with signatures and current test coverage
  • Architecture — CDP connection, DOM queries, console capture, Angular helpers, action system
  • Development Guide — prerequisites, build, test patterns, adding actions
  • Project History — completed phases, known limitations, future considerations

Build & Test

go test ./...
go vet ./...
go build ./...

Licence

European Union Public Licence 1.2 — see LICENCE for details.