Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chromedp/chromedp
/ functions
Functions
1,086 in github.com/chromedp/chromedp
⨍
Functions
1,086
◇
Types & classes
86
↓ 2 callers
Method
ensureFrame
ensureFrame makes sure that the top frame of this target is loaded. It returns the top frame, the root node, and the ExecutionContextID of the top fra
target.go:96
↓ 2 callers
Function
fetch
fetch downloads path from one source.
kb/gen.go:474
↓ 2 callers
Function
findExecPath
findExecPath looks for the Chrome browser on the system. It looks in different places on different operating systems. The search can be aggressive and
allocate.go:635
↓ 2 callers
Method
flagArgs
flagArgs returns the command line arguments for the flags of the allocator.
allocate.go:446
↓ 2 callers
Function
h
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callers
Function
ie
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callers
Function
isAttacher
isAttacher reports whether a attaches to a browser that runs already. See [Attacher].
chromedp.go:437
↓ 2 callers
Method
isClosed
isClosed reports whether Close started.
remote/internal/websocket/conn.go:301
↓ 2 callers
Function
isConsoleLog
isConsoleLog returns a match for a console call with the text.
listen_test.go:44
↓ 2 callers
Method
isControl
isControl reports whether the opcode is a control opcode. RFC 6455 section 5.5 says that the control opcodes are the ones with the highest bit set.
remote/internal/websocket/frame.go:45
↓ 2 callers
Function
isCouldNotComputeBoxModelError
isCouldNotComputeBoxModelError unwraps err as a MessageError and determines if it is a compute box model error.
util.go:328
↓ 2 callers
Function
isKeepOpenDir
isKeepOpenDir reports whether dir is the user data directory of a browser that KeepOpen started, in this program or in another one.
keepopen.go:129
↓ 2 callers
Function
joinHostPort
joinHostPort joins host and port as the host of a URL. The port can be empty.
remote/util.go:151
↓ 2 callers
Function
keepOpenRoot
keepOpenRoot returns the directory that holds the default user data directories of KeepOpen.
keepopen.go:119
↓ 2 callers
Function
killLeftovers
killLeftovers kills the processes that still use dir as the user data directory of a Chrome that started with it. Chrome child processes, such as the
allocate_linux.go:50
↓ 2 callers
Function
le
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callers
Function
lookup
lookup returns what a selector of the type S needs. These are the text for error messages, the node IDs and the func that selects the elements. A stri
query.go:408
↓ 2 callers
Function
lookupTo
lookupTo returns a lookupIP that gives ip for every name, and counts the calls in n.
remote/address_test.go:79
↓ 2 callers
Method
lostError
lostError returns the error of a call that cannot finish, because the connection to the browser is lost. It wraps the reason that the connection gave.
browser.go:327
↓ 2 callers
Function
m
(e)
testdata/twgl-full.min.js:6
↓ 2 callers
Function
markdown
markdown returns every document that this project writes. The skills come from elsewhere and are skipped.
docs/docs_test.go:232
↓ 2 callers
Function
modifyURL
modifyURL returns the websocket address to dial for urlstr. It changes only the bare address of the debugging port of Chrome: - An address with no qu
remote/util.go:44
↓ 2 callers
Function
mustWrite
mustWrite sends a frame from the server, and fails the test on an error.
remote/conn_test.go:28
↓ 2 callers
Function
navigate
navigate is the action that sends Page.navigate, without waiting for the page to load.
nav.go:29
↓ 2 callers
Function
ne
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callers
Function
newNodes
newNodes converts a list of protocol nodes with newNode.
node.go:63
↓ 2 callers
Method
newTarget
(ctx context.Context)
chromedp.go:457
↓ 2 callers
Function
nodeCenter
nodeCenter scrolls the node into view and returns the center of its first content quad.
input.go:93
↓ 2 callers
Function
oe
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callers
Method
pageEvent
pageEvent handles incoming page events.
target.go:427
↓ 2 callers
Function
pdfPages
pdfPages reads the sizes of the pages from the media boxes of the file. It works because the browser writes the page objects without compression.
pdf_test.go:30
↓ 2 callers
Function
printPDF
(t *testing.T, page string, opts ...PDFOption)
pdf_test.go:54
↓ 2 callers
Function
ptr
ptr returns a pointer to a copy of v. It sets the optional fields of the protocol types, which are pointers.
example_test.go:1064
↓ 2 callers
Method
publish
publish hands the raw parameters of an event to the subscriptions for the method. It never blocks.
session.go:89
↓ 2 callers
Method
pump
pump sends the queued events to the channel, until the subscription ends.
session.go:172
↓ 2 callers
Function
q
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callers
Function
quadCenter
quadCenter returns the center of the node in the viewport, as it is now. It does not scroll.
input.go:102
↓ 2 callers
Function
readFrameHeader
readFrameHeader reads and checks the header of a frame that a server sent. RFC 6455 section 5.2 describes the format. It returns io.EOF when the strea
remote/internal/websocket/frame.go:79
↓ 2 callers
Function
readOutputTo
readOutputTo is like readOutput. It also writes the output that it read before the websocket address to accumulated. A caller that gives up can then s
allocate.go:572
↓ 2 callers
Function
readStream
readStream reads a whole stream of the browser, and closes it. It closes the stream also when the read fails or the context ended, with a new context
pdf.go:81
↓ 2 callers
Function
readWebSocketURL
readWebSocketURL reads the websocket address from the output of a browser that started with a debugging port. It returns as soon as it finds the addre
remote/allocator_test.go:24
↓ 2 callers
Function
redactURL
redactURL returns urlstr with no user, query or fragment, for an error message. A hosted address can hold a token in its query.
remote/util.go:163
↓ 2 callers
Function
removeAllRetry
removeAllRetry removes dir like os.RemoveAll. Chrome child processes, such as the crashpad handler, can still write files in dir after the main proces
allocate.go:523
↓ 2 callers
Function
removeAllRetry
removeAllRetry removes dir. Chrome child processes can still write in dir for a short time after the main process exits, so it tries again.
remote/keepopen_test.go:27
↓ 2 callers
Method
resolveHost
resolveHost returns an IP address of host. An IP address and "localhost" stay as they are.
remote/util.go:135
↓ 2 callers
Function
retryRemove
retryRemove calls remove with dir until it returns nil, or until the limit is over. It waits pause between two calls, and returns the last error.
allocate.go:529
↓ 2 callers
Function
run
(out string)
kb/gen.go:46
↓ 2 callers
Method
run
(ctx context.Context)
target.go:180
↓ 2 callers
Function
runListeners
(list []cancelableListener, ev any)
util.go:9
↓ 2 callers
Function
se
(e)
testdata/twgl-full.min.js:6
↓ 2 callers
Function
setFrameState
setFrameState sets the frame state via bitwise or (|).
util.go:48
↓ 2 callers
Function
skipTimeZoneEnvOnWindows
skipTimeZoneEnvOnWindows skips a test that sets the time zone of the browser with the variable TZ. The browser reads the time zone from the system on
allocate_test.go:398
↓ 2 callers
Function
startChromeProcess
startChromeProcess is like startChrome, and it also returns the process of the browser. The test can kill the process, and then its child processes c
remote/websocket_test.go:322
↓ 2 callers
Method
subscribe
subscribe adds a subscription for the events with the method. It buffers every event from the moment that it returns. The returned func stops the subs
session.go:20
↓ 2 callers
Method
subscribeMany
subscribeMany is like subscribe for several methods, with one queue. The channel gets the events of all the methods in the order that they arrived. Ea
session.go:53
↓ 2 callers
Function
u
()
testdata/twgl-full.min.js:6
↓ 2 callers
Method
usesPipe
usesPipe reports whether Allocate connects to the browser with a pipe. It does not when the allocator has a dialer or the KeepOpen option is set, or w
allocate.go:507
↓ 2 callers
Function
visibleWindowFromEnv
visibleWindowFromEnv reports whether the environment variable CHROMEDP_VISIBLEWINDOW asks for a visible window. Any value other than the empty string,
allocate.go:872
↓ 2 callers
Function
we
(e)
testdata/twgl-full.min.js:6
↓ 2 callers
Method
writeFrame
writeFrame writes one masked frame with the FIN bit set. It copies the payload into the buffer of the connection and masks it there, so the bytes of t
remote/internal/websocket/conn.go:322
↓ 2 callers
Method
writeFrameLocked
writeFrameLocked is writeFrame for a caller that holds writeMu.
remote/internal/websocket/conn.go:329
↓ 2 callers
Function
writeHTML
(content string)
nav_test.go:345
↓ 1 callers
Function
Ae
(e,r,t,n)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
AllocateSeparate
AllocateSeparate returns the context of an entirely new browser, and a func that closes it. Unlike Allocate, it shares nothing with the other tests.
internal/chromedptest/chromedptest.go:253
↓ 1 callers
Method
Attaches
Attaches reports whether the allocator attaches to a browser that runs already.
allocate.go:43
↓ 1 callers
Method
Attribute
Attribute returns the named attribute for the node and if it exists.
node.go:81
↓ 1 callers
Function
AttributesAll
AttributesAll is an element query action that retrieves the element attributes for all element nodes matching the selector. Note: use it with a [CSSAl
query.go:1041
↓ 1 callers
Function
Blur
Blur is an element query action that unfocuses (blurs) the first element node matching the selector.
query.go:874
↓ 1 callers
Function
Button
Button is a mouse action option to set the button to click from a string.
input.go:159
↓ 1 callers
Function
ButtonModifiers
ButtonModifiers is a mouse action option to add input modifiers for a button click.
input.go:196
↓ 1 callers
Function
C
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
Clear
Clear is an element query action that clears the values of any input/textarea element nodes matching the selector.
query.go:938
↓ 1 callers
Function
ClickCount
ClickCount is a mouse action option to set the click count.
input.go:205
↓ 1 callers
Function
ComputedStyle
ComputedStyle is an element query action that retrieves the computed style of the first element node matching the selector.
query.go:1375
↓ 1 callers
Method
Device
Device returns the device info.
emulate.go:93
↓ 1 callers
Function
Dimensions
Dimensions is an element query action that retrieves the box model dimensions for the first element node matching the selector.
query.go:896
↓ 1 callers
Function
DoubleClick
DoubleClick is an element query action that sends a mouse double click event to the first element node matching the selector.
query.go:1237
↓ 1 callers
Function
Dump
Dump is an element query action that writes a readable tree of the first element node matching the selector and its children. The tree ends at the spe
query.go:1447
↓ 1 callers
Function
DumpTo
DumpTo is an element query action that writes a readable tree of the first element node matching the selector and its children. The tree ends at the s
query.go:1428
↓ 1 callers
Function
Ee
(e,r,t,n)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
EmulateScale
EmulateScale is an emulate viewport option to set the device viewport scaling factor.
emulate.go:40
↓ 1 callers
Function
Encode
Encode encodes a keyDown, char, and keyUp sequence for the specified rune.
kb/kb.go:75
↓ 1 callers
Function
EncodeUnidentified
EncodeUnidentified encodes a keyDown, char, and keyUp sequence for an unidentified rune.
kb/kb.go:53
↓ 1 callers
Function
EvalObjectGroup
EvalObjectGroup is an evaluate option to set the object group.
eval.go:131
↓ 1 callers
Function
Fe
(e,r,t,n)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
G
(e)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
I
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
InnerHTML
InnerHTML is an element query action that retrieves the inner html of the first element node matching the selector.
query.go:1194
↓ 1 callers
Method
IsException
IsException reports whether the message is an uncaught exception or an unhandled promise rejection.
console.go:81
↓ 1 callers
Function
Legacy
Legacy makes an action from an action of the previous version. The old action receives the same context, so [Call] and [CallBrowser] work inside it.
action.go:115
↓ 1 callers
Function
M
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
MatchedStyle
MatchedStyle is an element query action that retrieves the matched style information for the first element node matching the selector.
query.go:1393
↓ 1 callers
Function
NavigateForward
NavigateForward is an action that navigates the current frame forwards in its history, and waits for the page to load.
nav.go:76
↓ 1 callers
Function
NavigateToHistoryEntry
NavigateToHistoryEntry is an action to navigate to the specified navigation entry, and wait for the page to load.
nav.go:51
↓ 1 callers
Function
NodeReady
NodeReady is an element query option that waits until the browser has sent all queried element nodes.
query.go:602
↓ 1 callers
Function
Oe
(e,r,t)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
PopulateWait
PopulateWait is a populate option that sets a wait interval after the request for child nodes.
query.go:795
↓ 1 callers
Function
Reload
Reload is an action that reloads the current page, and waits for the page to load.
nav.go:95
↓ 1 callers
Function
RemoveAttribute
RemoveAttribute is an element query action that removes the element attribute with name from the first element node matching the selector.
query.go:1126
↓ 1 callers
Function
Reset
Reset is an element query action that resets the parent form of the first element node matching the selector.
query.go:1353
← previous
next →
301–400 of 1,086, ranked by callers