Documentation
¶
Overview ¶
Package chrome runs one headless Chrome through chromedp for the tools that look at a rendered page: the screenshots and the audits of the dev MCP server (REQ-AI-04) and the audits of `gx fuzz` (REQ-AI-11). The audit uses the vendored axe-core. No node.
Index ¶
Constants ¶
const ( AxeVersion = "4.13.0" AxeSHA256 = "c24f097bd2f451d4f933e8bc7d8d539f8672a2ebcb5cc9f9f3eec8ca9470a0c1" )
AxeVersion and AxeSHA256 pin the embedded axe-core build.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuditNode ¶
type AuditNode struct {
Target []string `json:"target"`
HTML string `json:"html"`
Summary string `json:"summary"`
}
AuditNode is one element that fails a rule.
type AuditOutput ¶
type AuditOutput struct {
Violations []Violation `json:"violations"`
// Passes is the number of rules that passed.
Passes int `json:"passes"`
Axe string `json:"axe"`
}
AuditOutput is the result of one audit.
type Browser ¶
type Browser struct {
// contains filtered or unexported fields
}
Browser is one headless Chrome. It starts on the first tab. The zero value is ready to use.