chromedp

package module
v0.0.0-...-7421a99 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2017 License: MIT Imports: 26 Imported by: 0

README

About chromedp

Package chromedp is a faster, simpler way to drive browsers in Go using the Chrome Debugging Protocol (for Chrome, Edge, Safari, etc) without external dependencies (ie, Selenium, PhantomJS, etc).

NOTE: chromedp's API is currently unstable, and may change at a moments notice. There are likely extremely bad bugs lurking in this code. CAVEAT USER.

Installation

Install in the usual way:

go get -u github.com/knq/chromedp

Usage

Below is a simple Google search performed using chromedp (taken from examples/simple):

This example shows logic for a simple search for a known website, clicking on the right link, and then taking a screenshot of a specific element on the loaded page and saving that to a local file on disk.

package main

import (
	"context"
	"fmt"
	"io/ioutil"
	"log"
	"time"

	cdp "github.com/knq/chromedp"
	cdptypes "github.com/knq/chromedp/cdp"
)

func main() {
	var err error

	// create context
	ctxt, cancel := context.WithCancel(context.Background())
	defer cancel()

	// create chrome instance
	c, err := cdp.New(ctxt)
	if err != nil {
		log.Fatal(err)
	}

	// run task list
	var site, res string
	err = c.Run(ctxt, googleSearch("site:brank.as", "Easy Money Management", &site, &res))
	if err != nil {
		log.Fatal(err)
	}

	// shutdown chrome
	err = c.Shutdown(ctxt)
	if err != nil {
		log.Fatal(err)
	}

	// wait for chrome to finish
	err = c.Wait()
	if err != nil {
		log.Fatal(err)
	}

	log.Printf("saved screenshot of #testimonials from search result listing `%s` (%s)", res, site)
}

func googleSearch(q, text string, site, res *string) cdp.Tasks {
	var buf []byte
	sel := fmt.Sprintf(`//a[text()[contains(., '%s')]]`, text)
	return cdp.Tasks{
		cdp.Navigate(`https://www.google.com`),
		cdp.Sleep(2 * time.Second),
		cdp.WaitVisible(`#hplogo`, cdp.ByID),
		cdp.SendKeys(`#lst-ib`, q, cdp.ByID),
		cdp.Click(`input[name="btnK"]`, cdp.ByQuery),
		cdp.WaitNotVisible(`input[name="btnI"]`, cdp.ByQuery),
		cdp.Text(sel, res),
		cdp.Click(sel),
		cdp.Sleep(2 * time.Second),
		cdp.WaitVisible(`#footer`, cdp.ByQuery),
		cdp.WaitNotVisible(`div.v-middle > div.la-ball-clip-rotate`, cdp.ByQuery),
		cdp.Location(site),
		cdp.Screenshot(`#testimonials`, &buf, cdp.ByID),
		cdp.ActionFunc(func(context.Context, cdptypes.FrameHandler) error {
			return ioutil.WriteFile("testimonials.png", buf, 0644)
		}),
	}
}

Please see the examples directory for examples.

TODO

  • Move timeouts to context (defaults)
  • Implement more query selector options (allow over riding context timeouts)
  • Contextual actions for "dry run" (or via an accumulator?)
  • Network loader / manager
  • More examples
  • Profiler
  • Unit tests / coverage: travis-ci + coveralls integration

Documentation

Overview

Package chromedp is a high level Chrome Debugging Protocol domain manager that simplifies driving web browsers (Chrome, Safari, Edge, Android Web Views, and others) for scraping, unit testing, or profiling web pages. chromedp requires no third-party dependencies (ie, Selenium), implementing the async Chrome Debugging Protocol natively.

Index

Constants

View Source
const (
	// DefaultNewTargetTimeout is the default time to wait for a new target to
	// be started.
	DefaultNewTargetTimeout = 3 * time.Second

	// DefaultCheckDuration is the default time to sleep between a check.
	DefaultCheckDuration = 50 * time.Millisecond
)
View Source
const (
	KeyCodeBackspace = "\b"
	KeyCodeTab       = "\t"
	KeyCodeCR        = "\r"
	KeyCodeLF        = "\n"
	KeyCodeLeft      = "\x25"
	KeyCodeUp        = "\x26"
	KeyCodeRight     = "\x27"
	KeyCodeDown      = "\x28"
)

KeyCode values.

Variables

View Source
var (
	ErrNoResults   = errors.New("no results")
	ErrNotVisible  = errors.New("not visible")
	ErrVisible     = errors.New("visible")
	ErrDisabled    = errors.New("disabled")
	ErrNotSelected = errors.New("not selected")
)

Error types.

View Source
var (
	// ErrInvalidBoxModel is the error returned when the retrieved box model is
	// invalid.
	ErrInvalidBoxModel = errors.New("invalid box model")
)
View Source
var (
	ErrInvalidDimensions = errors.New("invalid box dimensions")
)

Error types.

Functions

func ByID

func ByID(s *Selector)

ByID is a query option to select a single element by their CSS #id.

func ByNodeID

func ByNodeID(s *Selector)

ByNodeID is a query option to select elements by their NodeIDs.

func ByQuery

func ByQuery(s *Selector)

ByQuery is a query option to select a single element using DOM.querySelector.

func ByQueryAll

func ByQueryAll(s *Selector)

ByQueryAll is a query option to select elements by DOM.querySelectorAll.

func BySearch

func BySearch(s *Selector)

BySearch is a query option via DOM.performSearch (works with both CSS and XPath queries).

func ElementEnabled

func ElementEnabled(s *Selector)

ElementEnabled is a query option to wait until the element is enabled.

func ElementNotVisible

func ElementNotVisible(s *Selector)

ElementNotVisible is a query option to wait until the element is visible.

func ElementReady

func ElementReady(s *Selector)

ElementReady is a query option to wait until the element is ready.

func ElementSelected

func ElementSelected(s *Selector)

ElementSelected is a query option to wait until the element is selected.

func ElementVisible

func ElementVisible(s *Selector)

ElementVisible is a query option to wait until the element is visible.

func NavigateBack(ctxt context.Context, h cdp.FrameHandler) error

NavigateBack navigates the current frame backwards in its history.

func NavigateForward(ctxt context.Context, h cdp.FrameHandler) error

NavigateForward navigates the current frame forwards in its history.

func UnmarshalMessage

func UnmarshalMessage(msg *cdp.Message) (interface{}, error)

UnmarshalMessage unmarshals the message result or params.

Types

type Action

type Action interface {
	Do(context.Context, cdp.FrameHandler) error
}

Action is a single atomic action.

func AddOnLoadScript

func AddOnLoadScript(source string, id *page.ScriptIdentifier) Action

AddOnLoadScript adds a script to evaluate on page load.

func AttributeValue

func AttributeValue(sel interface{}, name string, value *string, ok *bool, opts ...QueryOption) Action

AttributeValue retrieves the name'd attribute value for the specified element.

func Attributes

func Attributes(sel interface{}, attributes *map[string]string, opts ...QueryOption) Action

Attributes retrieves the attributes for the specified element.

func CaptureScreenshot

func CaptureScreenshot(res *[]byte) Action

CaptureScreenshot captures takes a full page screenshot.

func Clear

func Clear(sel interface{}, opts ...QueryOption) Action

Clear clears input and textarea fields of their values.

func Click

func Click(sel interface{}, opts ...QueryOption) Action

Click sends a click to the first element returned by the selector.

func Dimensions

func Dimensions(sel interface{}, model **dom.BoxModel, opts ...QueryOption) Action

Dimensions retrieves the box model dimensions for the first node matching the specified selector.

func DoubleClick

func DoubleClick(sel interface{}, opts ...QueryOption) Action

DoubleClick does a double click on the first element returned by selector.

func Evaluate

func Evaluate(expression string, res **rundom.RemoteObject) Action

Evaluate evaluates a script.

func Focus

func Focus(sel interface{}, opts ...QueryOption) Action

Focus focuses the first element returned by the selector.

func Hover

func Hover(sel interface{}, opts ...QueryOption) Action

Hover hovers (moves) the mouse over the first element returned by the selector.

func KeyActionNode

func KeyActionNode(n *cdp.Node, v string, opts ...KeyOption) Action

KeyActionNode dispatches a key event on a node.

func Location

func Location(urlstr *string) Action

Location retrieves the URL location.

func MouseAction

func MouseAction(typ input.MouseType, x, y int64, opts ...MouseOption) Action

MouseAction is a mouse action.

func MouseActionNode

func MouseActionNode(n *cdp.Node, opts ...MouseOption) Action

MouseActionNode dispatches a mouse event at the center of a specified node.

func MouseClickXY

func MouseClickXY(x, y int64, opts ...MouseOption) Action

MouseClickXY sends a left mouse button click at the X, Y location.

func Navigate(urlstr string) Action

Navigate navigates the current frame.

func NavigateToHistoryEntry(entryID int64) Action

NavigateToHistoryEntry is an action to navigate to the specified navigation entry.

func NavigationEntries(currentIndex *int64, entries *[]*page.NavigationEntry) Action

NavigationEntries is an action to retrieve the page's navigation history entries.

func NodeIDs

func NodeIDs(sel interface{}, ids *[]cdp.NodeID, opts ...QueryOption) Action

NodeIDs returns the node IDs of the matching selector.

func Nodes

func Nodes(sel interface{}, nodes *[]*cdp.Node, opts ...QueryOption) Action

Nodes retrieves the DOM nodes matching the selector.

func Query

func Query(sel interface{}, opts ...QueryOption) Action

Query is an action to query for document nodes match the specified sel and the supplied query options.

func QueryAfter

func QueryAfter(sel interface{}, f func(context.Context, cdp.FrameHandler, ...*cdp.Node) error, opts ...QueryOption) Action

QueryAfter is an action that will match the specified sel using the supplied query options, and after the visibility conditions of the query have been met, will execute f.

func RemoveAttribute

func RemoveAttribute(sel interface{}, name string, opts ...QueryOption) Action

RemoveAttribute removes an element's attribute with name.

func RemoveOnLoadScript

func RemoveOnLoadScript(id page.ScriptIdentifier) Action

RemoveOnLoadScript removes a script to evaluate on page load.

func Screenshot

func Screenshot(sel interface{}, picbuf *[]byte, opts ...QueryOption) Action

Screenshot takes a screenshot of the first element matching the selector.

func SendKeys

func SendKeys(sel interface{}, v string, opts ...QueryOption) Action

SendKeys sends keys to the first element returned by selector.

func SetAttributeValue

func SetAttributeValue(sel interface{}, name, value string, opts ...QueryOption) Action

SetAttributeValue sets an element's attribute with name to value.

func SetAttributes

func SetAttributes(sel interface{}, attributes map[string]string, opts ...QueryOption) Action

SetAttributes sets the attributes for the specified element.

func SetValue

func SetValue(sel interface{}, value string, opts ...QueryOption) Action

SetValue sets the value of an element.

func Sleep

func Sleep(d time.Duration) Action

Sleep is an empty action that calls time.Sleep with the specified duration.

func Stop

func Stop() Action

Stop stops all navigation and pending resource retrieval.

func Submit

func Submit(sel interface{}, opts ...QueryOption) Action

Submit is an action that submits whatever form the first element belongs to.

func Text

func Text(sel interface{}, text *string, opts ...QueryOption) Action

Text retrieves the text of the first element matching the selector.

func Value

func Value(sel interface{}, value *string, opts ...QueryOption) Action

Value retrieves the value of an element.

func WaitEnabled

func WaitEnabled(sel interface{}, opts ...QueryOption) Action

WaitEnabled waits until the selected element is enabled (does not have attribute 'disabled').

func WaitNotVisible

func WaitNotVisible(sel interface{}, opts ...QueryOption) Action

WaitNotVisible waits until the selected element is not visible.

func WaitReady

func WaitReady(sel interface{}, opts ...QueryOption) Action

WaitReady waits until the element is ready (ie, loaded by chromedp).

func WaitSelected

func WaitSelected(sel interface{}, opts ...QueryOption) Action

WaitSelected waits until the element is selected (has attribute 'selected').

func WaitVisible

func WaitVisible(sel interface{}, opts ...QueryOption) Action

WaitVisible waits until the selected element is visible.

type ActionFunc

type ActionFunc func(context.Context, cdp.FrameHandler) error

ActionFunc is a single action func.

func (ActionFunc) Do

Do executes the action using the provided context.

type CDP

type CDP struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

CDP contains information for managing a Chrome process runner, low level client and associated target page handlers.

func New

func New(ctxt context.Context, opts ...Option) (*CDP, error)

New creates a new Chrome Debugging Protocol client.

func (*CDP) AddTarget

func (c *CDP) AddTarget(ctxt context.Context, t client.Target)

AddTarget adds a target using the supplied context.

func (*CDP) CloseByID

func (c *CDP) CloseByID(id string) Action

CloseByID closes the Chrome target with the specified id.

func (*CDP) CloseByIndex

func (c *CDP) CloseByIndex(i int) Action

CloseByIndex closes the Chrome target with specified index i.

func (*CDP) GetHandlerByID

func (c *CDP) GetHandlerByID(id string) cdp.FrameHandler

GetHandlerByID retrieves the domains manager for the specified target ID.

func (*CDP) GetHandlerByIndex

func (c *CDP) GetHandlerByIndex(i int) cdp.FrameHandler

GetHandlerByIndex retrieves the domains manager for the specified index.

func (*CDP) ListTargets

func (c *CDP) ListTargets() []string

ListTargets returns the target IDs of the managed targets.

func (*CDP) NewTarget

func (c *CDP) NewTarget(id *string, opts ...client.Option) Action

NewTarget is an action that creates a new Chrome target, and sets it as the active target.

func (*CDP) NewTargetWithURL

func (c *CDP) NewTargetWithURL(urlstr string, id *string, opts ...client.Option) Action

NewTargetWithURL creates a new Chrome target, sets it as the active target, and then navigates to the specified url.

func (*CDP) Run

func (c *CDP) Run(ctxt context.Context, a Action) error

Run executes the action against the current target using the supplied context.

func (*CDP) SetHandler

func (c *CDP) SetHandler(i int) error

SetHandler sets the active target to the target with the specified index.

func (*CDP) SetHandlerByID

func (c *CDP) SetHandlerByID(id string) error

SetHandlerByID sets the active target to the target with the specified id.

func (*CDP) SetTarget

func (c *CDP) SetTarget(i int) Action

SetTarget is an action that sets the active Chrome handler to the specified index i.

func (*CDP) SetTargetByID

func (c *CDP) SetTargetByID(id string) Action

SetTargetByID is an action that sets the active Chrome handler to the handler associated with the specified id.

func (*CDP) Shutdown

func (c *CDP) Shutdown(ctxt context.Context, opts ...client.Option) error

Shutdown closes all Chrome page handlers.

func (*CDP) Wait

func (c *CDP) Wait() error

Wait waits for the Chrome runner to terminate.

type FrameOp

type FrameOp func(*cdp.Frame)

FrameOp is a frame manipulation operation.

type KeyAction

type KeyAction struct {
	// contains filtered or unexported fields
}

KeyAction contains information about a key action.

func (*KeyAction) Do

func (ka *KeyAction) Do(ctxt context.Context, h cdp.FrameHandler) error

Do satisfies Action interface.

type KeyCode

type KeyCode string

KeyCode are known system key codes.

type KeyOption

KeyOption is a key action option.

func KeyModifiers

func KeyModifiers(modifiers ...input.Modifier) KeyOption

KeyModifiers is a key action option to add additional modifiers on the key press.

type MouseOption

MouseOption is a mouse action option.

func Button

func Button(button input.ButtonType) MouseOption

Button is a mouse action option to set the button to click.

func ButtonModifiers

func ButtonModifiers(modifiers ...input.Modifier) MouseOption

ButtonModifiers is a mouse action option to add additional modifiers for the button.

func ButtonString

func ButtonString(btn string) MouseOption

ButtonString is a mouse action option to set the button to click as a string.

func ClickCount

func ClickCount(n int) MouseOption

ClickCount is a mouse action option to set the click count.

type NodeOp

type NodeOp func(*cdp.Node)

NodeOp is a node manipulation operation.

type Option

type Option func(*CDP) error

Option is a Chrome Debugging Protocol option.

func WithRunner

func WithRunner(r *runner.Runner) Option

WithRunner is a option to specify the underlying Chrome runner to monitor for page handlers.

func WithRunnerOptions

func WithRunnerOptions(opts ...runner.CommandLineOption) Option

WithRunnerOptions is a option to specify the options to pass to a newly created Chrome process runner.

func WithTargets

func WithTargets(watch <-chan client.Target) Option

WithTargets is an option to specify the incoming targets to monitor for page handlers.

type QueryOption

type QueryOption func(*Selector)

QueryOption is a element query selector option.

func After

func After(f func(context.Context, cdp.FrameHandler, ...*cdp.Node) error) QueryOption

After is a query option to set a func that will be executed after the wait has succeeded.

func AtLeast

func AtLeast(n int) QueryOption

AtLeast is a query option to wait until at least n elements are returned from the query selector.

func ByFunc

ByFunc is a query option to set the func used to select elements.

func WaitFunc

func WaitFunc(wait func(context.Context, cdp.FrameHandler, *cdp.Node, ...cdp.NodeID) ([]*cdp.Node, error)) QueryOption

WaitFunc is a query option to set a custom wait func.

type Selector

type Selector struct {
	// contains filtered or unexported fields
}

Selector holds information pertaining to an element query select action.

func (*Selector) Do

func (s *Selector) Do(ctxt context.Context, h cdp.FrameHandler) error

Do satisfies the Action interface.

type TargetHandler

type TargetHandler struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

TargetHandler manages a Chrome Debugging Protocol target.

func NewTargetHandler

func NewTargetHandler(t client.Target) (*TargetHandler, error)

NewTargetHandler creates a new manager for the specified client target.

func (*TargetHandler) Execute

func (h *TargetHandler) Execute(ctxt context.Context, commandType cdp.MethodType, params easyjson.RawMessage) <-chan interface{}

Execute executes commandType against the endpoint passed to Run, using the provided context and the raw JSON encoded params.

Returns a result channel that will receive AT MOST ONE result. A result is either the command's result value (as a raw JSON encoded value), or any error encountered during operation. After the result (or an error) is passed to the returned channel, the channel will be closed.

Note: the returned channel will be closed after the result is read. If the passed context finishes prior to receiving the command result, then ErrContextDone will be sent to the channel.

func (*TargetHandler) GetRoot

func (h *TargetHandler) GetRoot(ctxt context.Context) (*cdp.Node, error)

GetRoot returns the current top level frame's root document node.

func (*TargetHandler) Listen

func (h *TargetHandler) Listen(eventTypes ...cdp.MethodType) <-chan interface{}

Listen adds a listener for the specified event types to the appropriate domain.

func (*TargetHandler) Run

func (h *TargetHandler) Run(ctxt context.Context) error

Run starts the processing of commands and events to the client target provided to NewTargetHandler.

Callers can stop Run by closing the passed context.

func (*TargetHandler) SetActive

func (h *TargetHandler) SetActive(ctxt context.Context, id cdp.FrameID) error

SetActive sets the currently active frame after a successful navigation.

func (*TargetHandler) WaitFrame

func (h *TargetHandler) WaitFrame(ctxt context.Context, id cdp.FrameID) (*cdp.Frame, error)

WaitFrame waits for a frame to be loaded using the provided context.

func (*TargetHandler) WaitNode

func (h *TargetHandler) WaitNode(ctxt context.Context, f *cdp.Frame, id cdp.NodeID) (*cdp.Node, error)

WaitNode waits for a node to be loaded using the provided context.

type Tasks

type Tasks []Action

Tasks is a list of Actions that can be used as a single Action.

func (Tasks) Do

func (t Tasks) Do(ctxt context.Context, h cdp.FrameHandler) error

Do executes the list of Tasks using the provided context.

Directories

Path Synopsis
cdp
accessibility
Package accessibility provides the Chrome Debugging Protocol commands, types, and events for the Chrome Accessibility domain.
Package accessibility provides the Chrome Debugging Protocol commands, types, and events for the Chrome Accessibility domain.
animation
Package animation provides the Chrome Debugging Protocol commands, types, and events for the Chrome Animation domain.
Package animation provides the Chrome Debugging Protocol commands, types, and events for the Chrome Animation domain.
applicationcache
Package applicationcache provides the Chrome Debugging Protocol commands, types, and events for the Chrome ApplicationCache domain.
Package applicationcache provides the Chrome Debugging Protocol commands, types, and events for the Chrome ApplicationCache domain.
cachestorage
Package cachestorage provides the Chrome Debugging Protocol commands, types, and events for the Chrome CacheStorage domain.
Package cachestorage provides the Chrome Debugging Protocol commands, types, and events for the Chrome CacheStorage domain.
css
Package css provides the Chrome Debugging Protocol commands, types, and events for the Chrome CSS domain.
Package css provides the Chrome Debugging Protocol commands, types, and events for the Chrome CSS domain.
database
Package database provides the Chrome Debugging Protocol commands, types, and events for the Chrome Database domain.
Package database provides the Chrome Debugging Protocol commands, types, and events for the Chrome Database domain.
debugger
Package debugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome Debugger domain.
Package debugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome Debugger domain.
deviceorientation
Package deviceorientation provides the Chrome Debugging Protocol commands, types, and events for the Chrome DeviceOrientation domain.
Package deviceorientation provides the Chrome Debugging Protocol commands, types, and events for the Chrome DeviceOrientation domain.
dom
Package dom provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOM domain.
Package dom provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOM domain.
domdebugger
Package domdebugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMDebugger domain.
Package domdebugger provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMDebugger domain.
domstorage
Package domstorage provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMStorage domain.
Package domstorage provides the Chrome Debugging Protocol commands, types, and events for the Chrome DOMStorage domain.
emulation
Package emulation provides the Chrome Debugging Protocol commands, types, and events for the Chrome Emulation domain.
Package emulation provides the Chrome Debugging Protocol commands, types, and events for the Chrome Emulation domain.
heapprofiler
Package heapprofiler provides the Chrome Debugging Protocol commands, types, and events for the Chrome HeapProfiler domain.
Package heapprofiler provides the Chrome Debugging Protocol commands, types, and events for the Chrome HeapProfiler domain.
indexeddb
Package indexeddb provides the Chrome Debugging Protocol commands, types, and events for the Chrome IndexedDB domain.
Package indexeddb provides the Chrome Debugging Protocol commands, types, and events for the Chrome IndexedDB domain.
input
Package input provides the Chrome Debugging Protocol commands, types, and events for the Chrome Input domain.
Package input provides the Chrome Debugging Protocol commands, types, and events for the Chrome Input domain.
inspector
Package inspector provides the Chrome Debugging Protocol commands, types, and events for the Chrome Inspector domain.
Package inspector provides the Chrome Debugging Protocol commands, types, and events for the Chrome Inspector domain.
io
Package io provides the Chrome Debugging Protocol commands, types, and events for the Chrome IO domain.
Package io provides the Chrome Debugging Protocol commands, types, and events for the Chrome IO domain.
layertree
Package layertree provides the Chrome Debugging Protocol commands, types, and events for the Chrome LayerTree domain.
Package layertree provides the Chrome Debugging Protocol commands, types, and events for the Chrome LayerTree domain.
log
Package log provides the Chrome Debugging Protocol commands, types, and events for the Chrome Log domain.
Package log provides the Chrome Debugging Protocol commands, types, and events for the Chrome Log domain.
memory
Package memory provides the Chrome Debugging Protocol commands, types, and events for the Chrome Memory domain.
Package memory provides the Chrome Debugging Protocol commands, types, and events for the Chrome Memory domain.
network
Package network provides the Chrome Debugging Protocol commands, types, and events for the Chrome Network domain.
Package network provides the Chrome Debugging Protocol commands, types, and events for the Chrome Network domain.
page
Package page provides the Chrome Debugging Protocol commands, types, and events for the Chrome Page domain.
Package page provides the Chrome Debugging Protocol commands, types, and events for the Chrome Page domain.
profiler
Package profiler provides the Chrome Debugging Protocol commands, types, and events for the Chrome Profiler domain.
Package profiler provides the Chrome Debugging Protocol commands, types, and events for the Chrome Profiler domain.
rendering
Package rendering provides the Chrome Debugging Protocol commands, types, and events for the Chrome Rendering domain.
Package rendering provides the Chrome Debugging Protocol commands, types, and events for the Chrome Rendering domain.
runtime
Package runtime provides the Chrome Debugging Protocol commands, types, and events for the Chrome Runtime domain.
Package runtime provides the Chrome Debugging Protocol commands, types, and events for the Chrome Runtime domain.
schema
Package schema provides the Chrome Debugging Protocol commands, types, and events for the Chrome Schema domain.
Package schema provides the Chrome Debugging Protocol commands, types, and events for the Chrome Schema domain.
security
Package security provides the Chrome Debugging Protocol commands, types, and events for the Chrome Security domain.
Package security provides the Chrome Debugging Protocol commands, types, and events for the Chrome Security domain.
serviceworker
Package serviceworker provides the Chrome Debugging Protocol commands, types, and events for the Chrome ServiceWorker domain.
Package serviceworker provides the Chrome Debugging Protocol commands, types, and events for the Chrome ServiceWorker domain.
storage
Package storage provides the Chrome Debugging Protocol commands, types, and events for the Chrome Storage domain.
Package storage provides the Chrome Debugging Protocol commands, types, and events for the Chrome Storage domain.
systeminfo
Package systeminfo provides the Chrome Debugging Protocol commands, types, and events for the Chrome SystemInfo domain.
Package systeminfo provides the Chrome Debugging Protocol commands, types, and events for the Chrome SystemInfo domain.
target
Package target provides the Chrome Debugging Protocol commands, types, and events for the Chrome Target domain.
Package target provides the Chrome Debugging Protocol commands, types, and events for the Chrome Target domain.
tethering
Package tethering provides the Chrome Debugging Protocol commands, types, and events for the Chrome Tethering domain.
Package tethering provides the Chrome Debugging Protocol commands, types, and events for the Chrome Tethering domain.
tracing
Package tracing provides the Chrome Debugging Protocol commands, types, and events for the Chrome Tracing domain.
Package tracing provides the Chrome Debugging Protocol commands, types, and events for the Chrome Tracing domain.
cmd
examples
Package runner provides a Chrome process runner.
Package runner provides a Chrome process runner.

Jump to

Keyboard shortcuts

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