MCPcopy Create free account

hub / github.com/chromedp/chromedp / types & classes

Types & classes83 in github.com/chromedp/chromedp

↓ 70 callersTypeAliasID
ID is a selector for the element with this id. A leading "#" is optional. It uses DOM.querySelector.
query.go:64
↓ 51 callersTypeAliasCSS
CSS is a selector for the first element that matches a CSS selector. It uses DOM.querySelector.
query.go:56
↓ 36 callersTypeAliasJSPath
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 callersTypeAliasCSSAll
CSSAll is a selector for every element that matches a CSS selector. It uses DOM.querySelectorAll.
query.go:60
↓ 26 callersTypeAliasSearch
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 callersTypeAliasNodeIDs
NodeIDs is a selector for the elements with these node IDs.
query.go:72
↓ 2 callersTypeAliasConsoleType
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
↓ 2 callersTypeAliasOpcode
Opcode is the opcode of a frame. RFC 6455 section 5.2 defines the values.
remote/internal/websocket/frame.go:11
↓ 1 callersTypeAliasNodeType
NodeType is the type of a DOM node. It is the value of the NodeType field of the protocol node.
node.go:292
↓ 1 callersTypeAliasmyNodeIDs
myNodeIDs is a slice type that the package does not define. It counts as NodeIDs.
query_test.go:1627
↓ 1 callersTypeAliasmyString
A string myString is a string type that the package does not define. It counts as a Search.
query_test.go:1623
FuncTypeAction
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:32
InterfaceAllocator
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
StructAllocator
Allocator is a chromedp.Allocator which connects to an already running Chrome process through a websocket URL.
remote/allocator.go:49
InterfaceAttacher
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
StructAttributeResult
AttributeResult is the result of the [AttributeValue] action.
query.go:1078
StructBrowser
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
StructCloseError
CloseError is the error of a connection that the server closed with a status code other than 1000 and 1001, as RFC 6455 section 7.1.5 describes. [Conn
remote/internal/websocket/close.go:50
StructConn
Conn implements [chromedp.Transport] with a websocket connection. The client is in the package remote/internal/websocket.
remote/conn.go:33
StructConn
Conn is a client WebSocket connection. One goroutine can call ReadMessage while another calls WriteText. Close can run at any time.
remote/internal/websocket/conn.go:63
StructConn
Conn is the server end of a connection after the handshake.
remote/internal/wstest/wstest.go:35
StructConsoleMessage
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
StructContext
Context is the data that NewContext stores in a context.Context. Run needs it.
chromedp.go:43
InterfaceDevice
Device is the shared interface for known device types. See [device] for a set of ready-made devices and modes.
emulate.go:91
StructDialer
Dialer holds the settings of a dial. The zero value is ready to use.
remote/internal/websocket/handshake.go:43
TypeAliasError
Error is a chromedp error.
errors.go:55
StructExceptionError
ExceptionError is the error for a JavaScript exception. It wraps the protocol details of the exception.
errors.go:12
StructExecAllocator
ExecAllocator is an Allocator which starts new browser processes on the host machine.
allocate.go:162
StructFrame
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
StructFrame
Frame is a frame that the server read. The payload is unmasked.
remote/internal/wstest/wstest.go:44
TypeAliasFrameState
FrameState is the state of a Frame.
frame.go:29
StructInfo
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
StructKey
kb/gen.go:543
StructKey
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
StructLoadError
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
TypeAliasModifier
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
StructNode
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
TypeAliasNodeState
NodeState is the state of a DOM node.
node.go:335
InterfaceOldAction
OldAction is the interface of an action of the previous version of chromedp. The previous version named it Action.
action.go:107
StructPaperSize
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
StructPipeConn
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
InterfaceSelectable
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
StructSelector
Selector holds the data of an element selection query. See [Query] for how to build an element selector and its options.
query.go:77
StructTarget
Target manages a Chrome DevTools Protocol target.
target.go:21
InterfaceTransport
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
StructbrowserExitError
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:500
StructbrowserOutput
browserOutput copies the output of the browser to a buffer and to the combined output writer.
allocate_pipe.go:126
StructcancelableListener
chromedp.go:1071
StructclientFrame
clientFrame is a frame that the client wrote.
remote/internal/websocket/conn_test.go:59
StructcmdRun
cmdRun is a browser process that startCmd started.
allocate.go:401
StructconnRecorder
connRecorder remembers the network connection that the transport dialed, so that a connection can set a write deadline. The transport dials in another
remote/internal/websocket/handshake.go:252
StructcontextKey
chromedp.go:330
Interfacedeadliner
deadliner is the part of net.Conn that sets a write deadline. A connection uses it to limit the time of a close frame.
remote/internal/websocket/conn.go:57
StructdeviceDescriptor
device/gen.go:30
StructendingSession
endingSession is a [cdp.Session] that ends each subscription when a context ends, also when nobody ranges over the iterator.
action.go:271
StructerrAppender
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
StructeventValue
target.go:181
StructfakeConn
fakeConn is the network side of a Conn in a unit test. It reads the bytes of in, and it records the bytes that the client writes and the number of Wri
remote/internal/websocket/conn_test.go:17
StructframeHeader
frameHeader is a parsed frame header. It has no mask key, because a server must not mask a frame.
remote/internal/websocket/frame.go:68
FuncTypeframeOp
frameOp is a frame manipulation operation.
util.go:25
Structgreeting
expose_test.go:28
TypeAliasinfoType
infoType provides the enumerated device type.
device/device.go:50
StructlimitedBuffer
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
FuncTypenodeOp
nodeOp is a node manipulation operation.
util.go:58
StructnopWriteCloser
nopWriteCloser adds a Close method to a writer.
pipe_test.go:22
StructoldTitle
oldTitle is an action of the previous version of chromedp. It has a Do method.
example_test.go:998
StructpdfPage
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
StructpipeFiles
pipeFiles holds the files of the pipe transport of an ExecAllocator.
allocate_pipe.go:35
StructpollTask
pollTask holds the data of a poll task. See Poll for how to build poll tasks.
poll.go:14
Structrecorder
recorder keeps the events that a listener sees. The listener runs on the goroutine of the target, and the test reads from another one.
listen_test.go:20
Structresult
browser_test.go:225
StructscriptedTransport
scriptedTransport is a [Transport] that plays the browser. Read returns the messages that the test puts in reads. Write calls reply, which can put mes
browser_test.go:97
StructserverLog
serverLog is what a recording server saw.
remote/internal/websocket/handshake_test.go:585
StructsessionMessage
sessionMessage is an item of the queue from the goroutine that reads the messages of the browser to the loop that routes them. It holds a message of a
browser.go:464
Structsource
source describes one place that serves the files of the chromium source tree.
kb/gen.go:513
Structstate
input_test.go:266
Structstep
Enable available domains and discover targets.
chromedp.go:609
Structsubscribers
subscribers holds the event subscriptions of a session, indexed by the method of the event.
session.go:11
Structsubscription
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
StructsyncBuffer
syncBuffer is a bytes.Buffer that is safe to use from more than one goroutine.
allocate.go:550
StructsyncBuffer
syncBuffer is a bytes.Buffer that is safe to use from more than one goroutine.
remote/websocket_test.go:149
StructtypeText
console_test.go:49
Structuser
expose_test.go:24