MCPcopy Create free account

hub / github.com/chromedp/chromedp / functions

Functions1,064 in github.com/chromedp/chromedp

↓ 2 callersMethodisClosed
isClosed reports whether Close started.
remote/internal/websocket/conn.go:301
↓ 2 callersFunctionisConsoleLog
isConsoleLog returns a match for a console call with the text.
listen_test.go:44
↓ 2 callersMethodisControl
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 callersFunctionisCouldNotComputeBoxModelError
isCouldNotComputeBoxModelError unwraps err as a MessageError and determines if it is a compute box model error.
util.go:328
↓ 2 callersFunctionisKeepOpenDir
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 callersFunctionkeepOpenRoot
keepOpenRoot returns the directory that holds the default user data directories of KeepOpen.
keepopen.go:119
↓ 2 callersFunctionkillLeftovers
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 callersFunctionle
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callersFunctionlookup
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 callersMethodlostError
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 callersFunctionm
(e)
testdata/twgl-full.min.js:6
↓ 2 callersFunctionmarkdown
markdown returns every document that this project writes. The skills come from elsewhere and are skipped.
docs/docs_test.go:232
↓ 2 callersFunctionmustWrite
mustWrite sends a frame from the server, and fails the test on an error.
remote/conn_test.go:28
↓ 2 callersFunctionnavigate
navigate is the action that sends Page.navigate, without waiting for the page to load.
nav.go:29
↓ 2 callersFunctionne
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callersFunctionnewNodes
newNodes converts a list of protocol nodes with newNode.
node.go:63
↓ 2 callersMethodnewTarget
(ctx context.Context)
chromedp.go:457
↓ 2 callersFunctionnodeCenter
nodeCenter scrolls the node into view and returns the center of its first content quad.
input.go:93
↓ 2 callersFunctionoe
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callersMethodpageEvent
pageEvent handles incoming page events.
target.go:427
↓ 2 callersFunctionpdfPages
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 callersFunctionprintPDF
(t *testing.T, page string, opts ...PDFOption)
pdf_test.go:54
↓ 2 callersFunctionptr
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 callersMethodpublish
publish hands the raw parameters of an event to the subscriptions for the method. It never blocks.
session.go:89
↓ 2 callersMethodpump
pump sends the queued events to the channel, until the subscription ends.
session.go:172
↓ 2 callersFunctionq
(e,r)
testdata/twgl-full.min.js:6
↓ 2 callersFunctionquadCenter
quadCenter returns the center of the node in the viewport, as it is now. It does not scroll.
input.go:102
↓ 2 callersFunctionreadFrameHeader
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 callersFunctionreadOutputTo
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 callersFunctionreadStream
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 callersFunctionreadWebSocketURL
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 callersFunctionremoveAllRetry
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 callersFunctionremoveAllRetry
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 callersFunctionresolveHost
resolveHost tries to resolve a host to an IP address. If the host is an IP address or "localhost", it returns the host directly.
remote/util.go:37
↓ 2 callersFunctionretryRemove
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 callersFunctionrun
(out string)
kb/gen.go:46
↓ 2 callersMethodrun
(ctx context.Context)
target.go:180
↓ 2 callersFunctionrunListeners
(list []cancelableListener, ev any)
util.go:9
↓ 2 callersFunctionse
(e)
testdata/twgl-full.min.js:6
↓ 2 callersFunctionsetFrameState
setFrameState sets the frame state via bitwise or (|).
util.go:48
↓ 2 callersFunctionskipTimeZoneEnvOnWindows
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 callersFunctionstartChromeProcess
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 callersMethodsubscribe
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 callersMethodsubscribeMany
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 callersFunctionu
()
testdata/twgl-full.min.js:6
↓ 2 callersMethodusesPipe
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 callersFunctionvisibleWindowFromEnv
visibleWindowFromEnv reports whether the environment variable CHROMEDP_VISIBLEWINDOW asks for a visible window. Any value other than the empty string,
allocate.go:872
↓ 2 callersFunctionwe
(e)
testdata/twgl-full.min.js:6
↓ 2 callersMethodwriteFrame
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 callersMethodwriteFrameLocked
writeFrameLocked is writeFrame for a caller that holds writeMu.
remote/internal/websocket/conn.go:329
↓ 2 callersFunctionwriteHTML
(content string)
nav_test.go:345
↓ 1 callersFunctionAe
(e,r,t,n)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionAllocateSeparate
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 callersMethodAttaches
Attaches reports whether the allocator attaches to a browser that runs already.
allocate.go:43
↓ 1 callersMethodAttribute
Attribute returns the named attribute for the node and if it exists.
node.go:81
↓ 1 callersFunctionAttributesAll
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 callersFunctionBlur
Blur is an element query action that unfocuses (blurs) the first element node matching the selector.
query.go:874
↓ 1 callersFunctionButton
Button is a mouse action option to set the button to click from a string.
input.go:159
↓ 1 callersFunctionButtonModifiers
ButtonModifiers is a mouse action option to add input modifiers for a button click.
input.go:196
↓ 1 callersFunctionC
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionClear
Clear is an element query action that clears the values of any input/textarea element nodes matching the selector.
query.go:938
↓ 1 callersFunctionClickCount
ClickCount is a mouse action option to set the click count.
input.go:205
↓ 1 callersFunctionComputedStyle
ComputedStyle is an element query action that retrieves the computed style of the first element node matching the selector.
query.go:1375
↓ 1 callersMethodDevice
Device returns the device info.
emulate.go:93
↓ 1 callersFunctionDimensions
Dimensions is an element query action that retrieves the box model dimensions for the first element node matching the selector.
query.go:896
↓ 1 callersFunctionDoubleClick
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 callersFunctionDump
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 callersFunctionDumpTo
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 callersFunctionEe
(e,r,t,n)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionEmulateScale
EmulateScale is an emulate viewport option to set the device viewport scaling factor.
emulate.go:40
↓ 1 callersFunctionEncode
Encode encodes a keyDown, char, and keyUp sequence for the specified rune.
kb/kb.go:75
↓ 1 callersFunctionEncodeUnidentified
EncodeUnidentified encodes a keyDown, char, and keyUp sequence for an unidentified rune.
kb/kb.go:53
↓ 1 callersFunctionEvalObjectGroup
EvalObjectGroup is an evaluate option to set the object group.
eval.go:131
↓ 1 callersFunctionFe
(e,r,t,n)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionG
(e)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionI
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionInnerHTML
InnerHTML is an element query action that retrieves the inner html of the first element node matching the selector.
query.go:1194
↓ 1 callersMethodIsException
IsException reports whether the message is an uncaught exception or an unhandled promise rejection.
console.go:81
↓ 1 callersFunctionLegacy
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 callersFunctionM
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionMatchedStyle
MatchedStyle is an element query action that retrieves the matched style information for the first element node matching the selector.
query.go:1393
↓ 1 callersFunctionNavigateForward
NavigateForward is an action that navigates the current frame forwards in its history, and waits for the page to load.
nav.go:76
↓ 1 callersFunctionNavigateToHistoryEntry
NavigateToHistoryEntry is an action to navigate to the specified navigation entry, and wait for the page to load.
nav.go:51
↓ 1 callersFunctionNewAllocatorContext
NewAllocatorContext creates a new context that holds the allocator a. Use it with NewContext, as with the context of NewExecAllocator. It is for an Al
allocate.go:152
↓ 1 callersFunctionNodeReady
NodeReady is an element query option that waits until the browser has sent all queried element nodes.
query.go:602
↓ 1 callersFunctionOe
(e,r,t)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionPopulateWait
PopulateWait is a populate option that sets a wait interval after the request for child nodes.
query.go:795
↓ 1 callersFunctionReload
Reload is an action that reloads the current page, and waits for the page to load.
nav.go:95
↓ 1 callersFunctionRemoveAttribute
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 callersFunctionReset
Reset is an element query action that resets the parent form of the first element node matching the selector.
query.go:1353
↓ 1 callersFunctionRetryInterval
RetryInterval is an element query action option that sets how often the query retries when it fails to select the target elements. The default is 5ms
query.go:748
↓ 1 callersFunctionS
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionScreenshotNodes
ScreenshotNodes is an action that takes a screenshot of the specified nodes. It calculates the extents from the top most left node and the bottom most
screenshot.go:48
↓ 1 callersFunctionSetAttributes
SetAttributes is an element query action that sets the element attributes for the first element node matching the selector.
query.go:1057
↓ 1 callersFunctionSetJavascriptAttribute
SetJavascriptAttribute is an element query action that sets the JavaScript attribute for the first element node matching the selector.
query.go:1167
↓ 1 callersFunctionSetUploadFiles
SetUploadFiles is an element query action that sets the files to upload for the first element node matching the selector. The node must be an input[ty
query.go:1317
↓ 1 callersMethodSetWriteDeadline
(t time.Time)
remote/internal/websocket/conn.go:58
↓ 1 callersFunctionStop
Stop is an action that stops all navigation and pending resource retrieval.
nav.go:103
↓ 1 callersMethodString
String returns the type and the text of the message.
console.go:86
↓ 1 callersMethodString
String returns the Modifier as a string value.
kb/event.go:39
← previousnext →301–400 of 1,064, ranked by callers