Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chromedp/chromedp
/ functions
Functions
1,064 in github.com/chromedp/chromedp
⨍
Functions
1,064
◇
Types & classes
83
↓ 1 callers
Function
isJSONNull
isJSONNull reports whether value is the JSON literal null.
eval.go:112
↓ 1 callers
Function
isWindowsReset
isWindowsReset reports whether the error is a connection reset or abort of Windows. Its error numbers are not the ones of syscall.ECONNRESET.
remote/internal/websocket/handshake_test.go:579
↓ 1 callers
Function
je
(e,r,t,n)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
keepOpenOpts
keepOpenOpts returns the options of the exec allocator with KeepOpen and the websocket, followed by extra.
remote/keepopen_test.go:20
↓ 1 callers
Function
keyEventNodeTest
keyEventNodeTest returns a test that sends the keys of exp to the node that sel selects.
input_test.go:383
↓ 1 callers
Function
keyEventTest
keyEventTest returns a test that sends the keys of exp to the node that sel selects.
input_test.go:210
↓ 1 callers
Function
killProcessesUsing
killProcessesUsing kills the processes that have the user data directory dir in their command line, and returns how many it found.
allocate_linux.go:71
↓ 1 callers
Function
killProcessesUsing
killProcessesUsing kills the processes that have the user data directory dir in their command line, and returns how many it found. macOS has no /proc,
allocate_darwin.go:53
↓ 1 callers
Function
killProcessesUsing
killProcessesUsing kills the processes that have the user data directory dir in their command line.
remote/keepopen_linux_test.go:24
↓ 1 callers
Function
killProfileProcesses
killProfileProcesses kills the browser processes that still use dir. A test calls it to make sure that a kept browser leaves nothing behind.
remote/keepopen_linux_test.go:15
↓ 1 callers
Function
loadDomCodeData
loadDomCodeData loads the key codes from the dom_code_data.inc.
kb/gen.go:116
↓ 1 callers
Function
loadDomKeyData
loadDomKeyData loads the dom key data definitions.
kb/gen.go:235
↓ 1 callers
Function
loadKeyboardCodes
loadKeyboardCodes loads the enum definition from the specified path. It saves the resolved symbol value to the specified position for the resulting do
kb/gen.go:407
↓ 1 callers
Function
loadKeys
loadKeys loads the dom key definitions from the chromium source tree.
kb/gen.go:70
↓ 1 callers
Function
loadNonPrintable
loadNonPrintable loads the not printable key definitions.
kb/gen.go:252
↓ 1 callers
Function
loadPosixWinKeyboardCodes
loadPosixWinKeyboardCodes loads the native and Windows keyboard scan codes mapped to the DOM key.
kb/gen.go:365
↓ 1 callers
Function
loadPrintable
loadPrintable loads the printable key definitions.
kb/gen.go:187
↓ 1 callers
Function
loadScanCodes
loadScanCodes loads the scan codes for the dom key definitions.
kb/gen.go:334
↓ 1 callers
Method
logf
(format string, args ...any)
remote/internal/websocket/conn.go:305
↓ 1 callers
Method
maskKey
maskKey returns a new random mask key. The caller holds writeMu.
remote/internal/websocket/conn.go:357
↓ 1 callers
Function
matchedStyleTest
matchedStyleTest returns a test for TestMatchedStyle that selects the element with sel.
query_test.go:1254
↓ 1 callers
Function
modifyURL
modifyURL modifies the websocket debugger URL if the provided URL is not a valid websocket debugger URL. A websocket debugger URL that contains "/dev
remote/util.go:67
↓ 1 callers
Function
mouseClickNodeTest
mouseClickNodeTest returns a test that clicks the node that sel selects.
input_test.go:93
↓ 1 callers
Function
mouseClickOffscreenNodeTest
mouseClickOffscreenNodeTest returns a test that clicks the offscreen node that sel selects exp times.
input_test.go:144
↓ 1 callers
Function
near
(a, b float64)
pdf_test.go:52
↓ 1 callers
Function
newBrowser
newBrowser returns a browser with the options applied, and without a connection.
browser.go:152
↓ 1 callers
Function
newKey
newKey makes the Sec-WebSocket-Key value: 16 random bytes in base64, as RFC 6455 section 4.1 says.
remote/internal/websocket/handshake.go:172
↓ 1 callers
Function
newPipeFiles
newPipeFiles creates the pipes and gives the ends of the browser and the output of the browser to cmd. The caller must call closeChild after the proce
allocate_pipe.go:53
↓ 1 callers
Function
newReader
(b []byte)
remote/internal/websocket/frame_test.go:103
↓ 1 callers
Function
newScriptedTransport
()
browser_test.go:107
↓ 1 callers
Function
newSelector
newSelector builds the selector of sel and applies the options. The type of sel chooses the lookup. The option [ByFunc] can replace it.
query.go:236
↓ 1 callers
Method
newTarget
(ctx context.Context, targetID target.ID, sessionID target.SessionID)
browser.go:193
↓ 1 callers
Function
nodeIDsTest
nodeIDsTest returns a test for TestNodeIDs that selects the element with sel.
query_test.go:368
↓ 1 callers
Function
nodesTest
nodesTest returns a test for TestNodes that selects the element with sel.
query_test.go:335
↓ 1 callers
Method
noteReadError
noteReadError records why the connection to the browser is lost. The reader goroutine calls it before it closes LostConnection, so that a call that se
browser.go:472
↓ 1 callers
Function
onRaf
()
js/waitForPredicatePageFunction.js:52
↓ 1 callers
Function
onTimeout
()
js/waitForPredicatePageFunction.js:71
↓ 1 callers
Function
openImage
(screenshot string)
test/screenshot_test.go:244
↓ 1 callers
Function
outerHTMLTest
outerHTMLTest returns a test for TestOuterHTML that selects the element with sel.
query_test.go:1384
↓ 1 callers
Function
parseClose
parseClose parses the payload of a close frame. RFC 6455 section 5.5.1 says that the payload is empty or has a two byte status code and then a UTF-8 r
remote/internal/websocket/close.go:107
↓ 1 callers
Function
pdfParamsEqual
pdfParamsEqual compares the parameters, and follows the pointers.
pdf_test.go:211
↓ 1 callers
Function
pollInterval
(pollInterval)
js/waitForPredicatePageFunction.js:65
↓ 1 callers
Function
pollMutation
* @returns {!Promise<*>}
js/waitForPredicatePageFunction.js:16
↓ 1 callers
Function
pollRaf
()
js/waitForPredicatePageFunction.js:46
↓ 1 callers
Function
printBrowserVersion
printBrowserVersion starts a browser, prints its version and closes it, so that the log of a test run on any system says which browser runs the tests.
chromedp_test.go:87
↓ 1 callers
Function
printBrowserVersion
printBrowserVersion starts a browser, prints its version and closes it, so that the log of a test run on any system says which browser runs the tests.
internal/chromedptest/chromedptest.go:74
↓ 1 callers
Function
processKeys
processKeys processes the generated keys.
kb/gen.go:287
↓ 1 callers
Function
protocolEventNames
protocolEventNames returns the names of the event types that the package of cdproto with the import path pkg declares. It reads the source files in th
target_test.go:126
↓ 1 callers
Function
pseudoElementAdded
(m map[cdp.NodeID]*Node, c *Node)
util.go:218
↓ 1 callers
Function
pseudoElementRemoved
(m map[cdp.NodeID]*Node, id cdp.NodeID)
util.go:228
↓ 1 callers
Function
ptr
ptr returns a pointer to a copy of v. It sets the optional fields of the protocol types, which are pointers.
test/pdf_test.go:181
↓ 1 callers
Function
queryAll
queryAll selects elements by the DOM.querySelectorAll command.
query.go:461
↓ 1 callers
Function
queryOne
queryOne selects a single element by the DOM.querySelector command.
query.go:445
↓ 1 callers
Function
queryScrolled
queryScrolled is an element query action that scrolls the first element node that matches the selector into view, and returns the node.
drag.go:100
↓ 1 callers
Function
re
(e)
testdata/twgl-full.min.js:6
↓ 1 callers
Method
readMessage
readMessage reads frames until it has a whole message. RFC 6455 section 5.4 describes fragmentation: the first frame has the type, the later frames ar
remote/internal/websocket/conn.go:170
↓ 1 callers
Method
readPayload
readPayload appends n bytes from the stream to c.msg. It grows the buffer in steps, so the buffer follows the bytes that arrived.
remote/internal/websocket/conn.go:232
↓ 1 callers
Function
removeAttributeTest
removeAttributeTest returns a test for TestRemoveAttribute that selects the element with sel.
query_test.go:999
↓ 1 callers
Function
requestNode
requestNode returns the ID of the node that the object is.
query.go:567
↓ 1 callers
Function
requestNodes
requestNodes selects the elements with the given node IDs. It uses the DOM.requestChildNodes command.
query.go:580
↓ 1 callers
Function
resetTest
resetTest returns a test for TestReset that selects the element with sel.
query_test.go:602
↓ 1 callers
Function
retryWithSleep
retryWithSleep calls f again and again, with a sleep of d between the calls, until f returns true (stop) or a non-nil error.
chromedp.go:1058
↓ 1 callers
Function
run
(m *testing.M)
internal/chromedptest/chromedptest.go:95
↓ 1 callers
Function
run
run runs the program.
device/gen.go:46
↓ 1 callers
Method
run
run executes the selector. It finishes only when the by, wait, after, and last funcs succeed, or when the context is canceled. The last func can be ni
query.go:258
↓ 1 callers
Method
run
(ctx context.Context)
browser.go:338
↓ 1 callers
Method
runtimeEvent
runtimeEvent handles incoming runtime events.
target.go:355
↓ 1 callers
Function
sVGFullXPathTest
sVGFullXPathTest returns a test for TestSVGFullXPath that selects the element with sel.
query_test.go:1443
↓ 1 callers
Function
scrollIntoViewTest
scrollIntoViewTest returns a test for TestScrollIntoView that selects the element with sel.
query_test.go:1416
↓ 1 callers
Function
scrollableFlagUpdated
(isScrollable bool)
util.go:247
↓ 1 callers
Function
search
search selects elements by the DOM.performSearch command. It matches nodes by plain text, CSS selector or XPath query.
query.go:470
↓ 1 callers
Function
sendKeysTest
sendKeysTest returns a test for TestSendKeys that selects the element with sel.
query_test.go:1124
↓ 1 callers
Function
setAttributeValueTest
setAttributeValueTest returns a test for TestSetAttributeValue that selects the element with sel.
query_test.go:955
↓ 1 callers
Function
setAttributesTest
setAttributesTest returns a test for TestSetAttributes that selects the element with sel.
query_test.go:878
↓ 1 callers
Function
setChildNodes
(m map[cdp.NodeID]*Node, nodes []*Node)
util.go:106
↓ 1 callers
Function
setChildPipes
setChildPipes gives the ends of the pipes that the browser uses to cmd. On Unix, the browser reads the commands from its file descriptor 3 and writes
pipe_unix.go:14
↓ 1 callers
Method
setFlag
setFlag sets the flag name. A flag that is set again keeps its place.
allocate.go:711
↓ 1 callers
Function
setValueTest
setValueTest returns a test for TestSetValue that selects the element with sel.
query_test.go:690
↓ 1 callers
Method
setWriteDeadline
()
remote/internal/websocket/conn.go:385
↓ 1 callers
Function
shadowRootPopped
(m map[cdp.NodeID]*Node, id cdp.NodeID)
util.go:208
↓ 1 callers
Function
shadowRootPushed
(m map[cdp.NodeID]*Node, c *Node)
util.go:198
↓ 1 callers
Function
somethingListens
somethingListens reports whether the error comes from a server that answered on the port, and not from the failed connection. A runner can have a web
remote/internal/websocket/handshake_test.go:204
↓ 1 callers
Function
startBrowserOutput
startBrowserOutput starts to copy src. The goroutine is part of wg, so that the allocator waits for it.
allocate_pipe.go:135
↓ 1 callers
Function
startCmd
startCmd starts cmd and waits for it in one goroutine, which it locks to its OS thread. On Linux, the option Pdeathsig of the allocator makes the ker
allocate.go:424
↓ 1 callers
Function
startMarked
startMarked starts a process that has --user-data-dir=dir in its command line, as a Chrome process has. The channel closes when the process ends.
keepopen_linux_test.go:15
↓ 1 callers
Function
submitTest
submitTest returns a test for TestSubmit that selects the element with sel.
query_test.go:1162
↓ 1 callers
Function
tagEvent
tagEvent wraps the parameters of an event in a JSON object with the method.
session.go:102
↓ 1 callers
Function
testAllocator
(t *testing.T, modifyURL func(wsURL string) string, wantErr string, opts []Option)
remote/allocator_test.go:101
↓ 1 callers
Function
testConnAnswersPing
(t *testing.T, delay time.Duration)
remote/conn_test.go:59
↓ 1 callers
Function
textContentTest
textContentTest returns a test for TestTextContent that selects the element with sel.
query_test.go:518
↓ 1 callers
Function
textTest
textTest returns a test for TestText that selects the element with sel.
query_test.go:488
↓ 1 callers
Function
validCloseCode
validCloseCode reports whether a peer can send the code in a close frame. RFC 6455 section 7.4.1 defines 1000 to 1003 and 1007 to 1011. Codes 3000 to
remote/internal/websocket/close.go:90
↓ 1 callers
Function
valueKind
valueKind names the kind of a value for an error message.
query.go:554
↓ 1 callers
Function
valueTest
valueTest returns a test for TestValue that selects the element with sel.
query_test.go:644
↓ 1 callers
Function
visible
()
js/visible.js:1
↓ 1 callers
Method
waitActivePort
waitActivePort waits until the browser writes the file DevToolsActivePort, and returns the websocket address in it. The first line of the file is the
keepopen.go:248
↓ 1 callers
Function
waitGoroutines
waitGoroutines waits until the number of goroutines is at most max, or the time limit ends, and returns the number. With max 0 it waits for the limit
console_test.go:312
↓ 1 callers
Function
waitNoRunnerDirs
waitNoRunnerDirs waits until dir has no entry that the allocator made, or until the timeout.
internal/chromedptest/chromedptest.go:166
↓ 1 callers
Function
waitTargetGone
waitTargetGone polls the browser until the target with the given id is no longer listed, or until ctx is done.
chromedp.go:1137
↓ 1 callers
Function
windowID
windowID returns the id of the window of the tab of ctx.
newwindow_test.go:14
← previous
next →
501–600 of 1,064, ranked by callers