Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chromedp/chromedp
/ types & classes
Types & classes
69 in github.com/chromedp/chromedp
⨍
Functions
912
◇
Types & classes
69
↓ 70 callers
TypeAlias
ID
ID is a selector for the element with this id. A leading "#" is optional. It uses DOM.querySelector.
query.go:64
↓ 49 callers
TypeAlias
CSS
CSS is a selector for the first element that matches a CSS selector. It uses DOM.querySelector.
query.go:56
↓ 36 callers
TypeAlias
JSPath
JSPath is a selector for the elements that a JavaScript expression gives. It uses Runtime.evaluate. Use it only with trusted values, because chromedp
query.go:69
↓ 31 callers
TypeAlias
CSSAll
CSSAll is a selector for every element that matches a CSS selector. It uses DOM.querySelectorAll.
query.go:60
↓ 26 callers
TypeAlias
Search
Search is a selector that the browser resolves with DOM.performSearch. It matches nodes by plain text, CSS selector or XPath query. It is the lookup o
query.go:52
↓ 5 callers
TypeAlias
NodeIDs
NodeIDs is a selector for the elements with these node IDs.
query.go:72
↓ 2 callers
TypeAlias
ConsoleType
ConsoleType is the kind of a [ConsoleMessage]. The values for a call of the console API are the names of the protocol, such as "log", "warning" and "e
console.go:19
↓ 1 callers
TypeAlias
NodeType
NodeType is the type of a DOM node. It is the value of the NodeType field of the protocol node.
node.go:292
↓ 1 callers
TypeAlias
myNodeIDs
myNodeIDs is a slice type that the package does not define. It counts as NodeIDs.
query_test.go:1627
↓ 1 callers
TypeAlias
myString
A string myString is a string type that the package does not define. It counts as a Search.
query_test.go:1623
FuncType
Action
Action is a step that runs against the target of a chromedp context and returns a value of the type T. An action that returns no value has the type Ac
action.go:31
Interface
Allocator
An Allocator creates and manages a number of browsers. This interface hides how the browser process runs. For example, an Allocator can reuse browser
allocate.go:24
Struct
Allocator
Allocator is a chromedp.Allocator which connects to an already running Chrome process through a websocket URL.
remote/allocator.go:49
Interface
Attacher
An Attacher is an optional interface of an Allocator. An allocator that implements it connects to a browser that already runs, and it does not start t
allocate.go:40
Struct
AttributeResult
AttributeResult is the result of the [AttributeValue] action.
query.go:1077
Struct
Browser
Browser manages a browser through the Chrome DevTools Protocol. It handles the browser process runner, the connection to the browser, the targets, and
browser.go:51
Struct
Conn
Conn implements [chromedp.Transport] with a gobwas/ws websocket connection.
remote/conn.go:35
Struct
ConsoleMessage
ConsoleMessage is a message that the page wrote to the console. It is a call of the console API, an exception that nothing caught, or an entry of the
console.go:34
Struct
Context
Context is the data that NewContext stores in a context.Context. Run needs it.
chromedp.go:43
Interface
Device
Device is the shared interface for known device types. See [device] for a set of ready-made devices and modes.
emulate.go:91
TypeAlias
Error
Error is a chromedp error.
errors.go:55
Struct
ExceptionError
ExceptionError is the error for a JavaScript exception. It wraps the protocol details of the exception.
errors.go:12
Struct
ExecAllocator
ExecAllocator is an Allocator which starts new browser processes on the host machine.
allocate.go:162
Struct
Frame
Frame is a frame of a page. It embeds the protocol frame and adds the node tree of the frame and the state that chromedp keeps up to date from the bro
frame.go:15
TypeAlias
FrameState
FrameState is the state of a Frame.
frame.go:29
Struct
Info
Code generated by gen.go. DO NOT EDIT. go:generate go run gen.go Info holds device information for use with chromedp.Emulate.
device/device.go:12
Struct
Key
kb/gen.go:543
Struct
Key
Key contains information for generating a key press based off the unicode value. Example data for the following runes: Runes | '\r' '\n' | '
kb/kb.go:31
Struct
LoadError
LoadError is the error for a page that did not load. Navigate and RunResponse return it when the browser reports an error for the request of the page,
errors.go:36
TypeAlias
Modifier
Modifier is a bit field of pressed modifier keys. Convert it with int64 to set the Modifiers field of an input event.
kb/event.go:19
Struct
Node
Node is a DOM node in the node tree of a frame. It embeds the protocol node and adds the tree links and the state that chromedp keeps up to date from
node.go:19
TypeAlias
NodeState
NodeState is the state of a DOM node.
node.go:335
Interface
OldAction
OldAction is the interface of an action of the previous version of chromedp. The previous version named it Action.
action.go:106
Struct
PaperSize
PaperSize is the size of a sheet of paper in inches. Use it with [PDFPaper]. A field that is 0 gives the default of the browser for that field, so Pap
pdf.go:18
Struct
PipeConn
PipeConn implements Transport with the two pipes of a browser that was started with the --remote-debugging-pipe flag. On Unix, the browser reads the
pipe.go:22
Interface
Selectable
Selectable is what an element query accepts as the selector. The type of the selector chooses the lookup. A plain string is a [Search]. A named string
query.go:45
Struct
Selector
Selector holds the data of an element selection query. See [Query] for how to build an element selector and its options.
query.go:77
Struct
Target
Target manages a Chrome DevTools Protocol target.
target.go:20
Interface
Transport
Transport is the common interface to send and receive the protocol messages of a browser. [PipeConn] implements it, and so does the websocket connecti
browser.go:42
Struct
browserExitError
browserExitError is the error of a call that failed because the browser process died. It holds the error of the call and the exit error of the process
browser.go:474
Struct
browserOutput
browserOutput copies the output of the browser to a buffer and to the combined output writer.
allocate_pipe.go:126
Struct
bufferedConn
bufferedConn is a net.Conn that reads from a buffer first. It holds the bytes that the handshake read after the end of the response.
remote/conn.go:89
Struct
cancelableListener
chromedp.go:996
Struct
cmdRun
cmdRun is a browser process that startCmd started.
allocate.go:401
Struct
contextKey
chromedp.go:321
Struct
deviceDescriptor
device/gen.go:30
Struct
endingSession
endingSession is a [cdp.Session] that ends each subscription when a context ends, also when nobody ranges over the iterator.
action.go:161
Struct
errAppender
errAppender collects the arguments of a call and keeps the first error, so that the caller makes one error check. See https://blog.golang.org/errors-a
call.go:117
Struct
eventValue
target.go:103
FuncType
frameOp
frameOp is a frame manipulation operation.
util.go:25
Struct
greeting
expose_test.go:28
TypeAlias
infoType
infoType provides the enumerated device type.
device/device.go:50
Struct
limitedBuffer
limitedBuffer is a buffer that is safe to use from more than one goroutine. It keeps the first max bytes that are written to it and drops the rest.
allocate_pipe.go:101
FuncType
nodeOp
nodeOp is a node manipulation operation.
util.go:58
Struct
nopWriteCloser
nopWriteCloser adds a Close method to a writer.
pipe_test.go:22
Struct
oldTitle
oldTitle is an action of the previous version of chromedp. It has a Do method.
example_test.go:998
Struct
pdfPage
pdfPage is the size of a page of a PDF file, in points. A point is 1/72 of an inch.
pdf_test.go:19
Struct
pipeFiles
pipeFiles holds the files of the pipe transport of an ExecAllocator.
allocate_pipe.go:35
Struct
pollTask
pollTask holds the data of a poll task. See Poll for how to build poll tasks.
poll.go:14
Struct
serverConn
serverConn is the server end of a websocket connection in a test.
remote/conn_test.go:34
Struct
source
source describes one place that serves the files of the chromium source tree.
kb/gen.go:513
Struct
state
input_test.go:266
Struct
step
Enable available domains and discover targets.
chromedp.go:590
Struct
subscribers
subscribers holds the event subscriptions of a session, indexed by the method of the event.
session.go:11
Struct
subscription
subscription is one subscriber. It keeps the events in a queue without a limit, so that publishing never blocks the handling of the browser events. A
session.go:130
Struct
syncBuffer
syncBuffer is a bytes.Buffer that is safe to use from more than one goroutine.
allocate.go:550
Struct
syncBuffer
syncBuffer is a bytes.Buffer that is safe to use from more than one goroutine.
remote/websocket_test.go:149
Struct
typeText
console_test.go:49
Struct
user
expose_test.go:24