Documentation
¶
Overview ¶
Package browsertest is a fake DevTools page, to test code driving a browser without one: it answers the commands package browser sends as a simple page would, and records them.
Index ¶
Constants ¶
const Title = "Fake page"
Title is every page's title.
Variables ¶
var PNG = []byte("\x89PNG\r\n\x1a\nfake")
PNG is the screenshot the fake takes: a PNG signature and nothing more.
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct {
// URL is the DevTools WebSocket address to Attach to.
URL string
// contains filtered or unexported fields
}
Page is a fake page. Navigating loads Title at the URL (after sending a main-frame document request through Fetch.requestPaused, answered by the browser's navigation decision); Away is a link going to another URL.