MCPcopy Create free account

hub / github.com/chromedp/chromedp / functions

Functions1,064 in github.com/chromedp/chromedp

↓ 1 callersFunctionisJSONNull
isJSONNull reports whether value is the JSON literal null.
eval.go:112
↓ 1 callersFunctionisWindowsReset
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 callersFunctionje
(e,r,t,n)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionkeepOpenOpts
keepOpenOpts returns the options of the exec allocator with KeepOpen and the websocket, followed by extra.
remote/keepopen_test.go:20
↓ 1 callersFunctionkeyEventNodeTest
keyEventNodeTest returns a test that sends the keys of exp to the node that sel selects.
input_test.go:383
↓ 1 callersFunctionkeyEventTest
keyEventTest returns a test that sends the keys of exp to the node that sel selects.
input_test.go:210
↓ 1 callersFunctionkillProcessesUsing
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 callersFunctionkillProcessesUsing
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 callersFunctionkillProcessesUsing
killProcessesUsing kills the processes that have the user data directory dir in their command line.
remote/keepopen_linux_test.go:24
↓ 1 callersFunctionkillProfileProcesses
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 callersFunctionloadDomCodeData
loadDomCodeData loads the key codes from the dom_code_data.inc.
kb/gen.go:116
↓ 1 callersFunctionloadDomKeyData
loadDomKeyData loads the dom key data definitions.
kb/gen.go:235
↓ 1 callersFunctionloadKeyboardCodes
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 callersFunctionloadKeys
loadKeys loads the dom key definitions from the chromium source tree.
kb/gen.go:70
↓ 1 callersFunctionloadNonPrintable
loadNonPrintable loads the not printable key definitions.
kb/gen.go:252
↓ 1 callersFunctionloadPosixWinKeyboardCodes
loadPosixWinKeyboardCodes loads the native and Windows keyboard scan codes mapped to the DOM key.
kb/gen.go:365
↓ 1 callersFunctionloadPrintable
loadPrintable loads the printable key definitions.
kb/gen.go:187
↓ 1 callersFunctionloadScanCodes
loadScanCodes loads the scan codes for the dom key definitions.
kb/gen.go:334
↓ 1 callersMethodlogf
(format string, args ...any)
remote/internal/websocket/conn.go:305
↓ 1 callersMethodmaskKey
maskKey returns a new random mask key. The caller holds writeMu.
remote/internal/websocket/conn.go:357
↓ 1 callersFunctionmatchedStyleTest
matchedStyleTest returns a test for TestMatchedStyle that selects the element with sel.
query_test.go:1254
↓ 1 callersFunctionmodifyURL
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 callersFunctionmouseClickNodeTest
mouseClickNodeTest returns a test that clicks the node that sel selects.
input_test.go:93
↓ 1 callersFunctionmouseClickOffscreenNodeTest
mouseClickOffscreenNodeTest returns a test that clicks the offscreen node that sel selects exp times.
input_test.go:144
↓ 1 callersFunctionnear
(a, b float64)
pdf_test.go:52
↓ 1 callersFunctionnewBrowser
newBrowser returns a browser with the options applied, and without a connection.
browser.go:152
↓ 1 callersFunctionnewKey
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 callersFunctionnewPipeFiles
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 callersFunctionnewReader
(b []byte)
remote/internal/websocket/frame_test.go:103
↓ 1 callersFunctionnewScriptedTransport
()
browser_test.go:107
↓ 1 callersFunctionnewSelector
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 callersMethodnewTarget
(ctx context.Context, targetID target.ID, sessionID target.SessionID)
browser.go:193
↓ 1 callersFunctionnodeIDsTest
nodeIDsTest returns a test for TestNodeIDs that selects the element with sel.
query_test.go:368
↓ 1 callersFunctionnodesTest
nodesTest returns a test for TestNodes that selects the element with sel.
query_test.go:335
↓ 1 callersMethodnoteReadError
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 callersFunctiononRaf
()
js/waitForPredicatePageFunction.js:52
↓ 1 callersFunctiononTimeout
()
js/waitForPredicatePageFunction.js:71
↓ 1 callersFunctionopenImage
(screenshot string)
test/screenshot_test.go:244
↓ 1 callersFunctionouterHTMLTest
outerHTMLTest returns a test for TestOuterHTML that selects the element with sel.
query_test.go:1384
↓ 1 callersFunctionparseClose
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 callersFunctionpdfParamsEqual
pdfParamsEqual compares the parameters, and follows the pointers.
pdf_test.go:211
↓ 1 callersFunctionpollInterval
(pollInterval)
js/waitForPredicatePageFunction.js:65
↓ 1 callersFunctionpollMutation
* @returns {!Promise<*>}
js/waitForPredicatePageFunction.js:16
↓ 1 callersFunctionpollRaf
()
js/waitForPredicatePageFunction.js:46
↓ 1 callersFunctionprintBrowserVersion
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 callersFunctionprintBrowserVersion
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 callersFunctionprocessKeys
processKeys processes the generated keys.
kb/gen.go:287
↓ 1 callersFunctionprotocolEventNames
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 callersFunctionpseudoElementAdded
(m map[cdp.NodeID]*Node, c *Node)
util.go:218
↓ 1 callersFunctionpseudoElementRemoved
(m map[cdp.NodeID]*Node, id cdp.NodeID)
util.go:228
↓ 1 callersFunctionptr
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 callersFunctionqueryAll
queryAll selects elements by the DOM.querySelectorAll command.
query.go:461
↓ 1 callersFunctionqueryOne
queryOne selects a single element by the DOM.querySelector command.
query.go:445
↓ 1 callersFunctionqueryScrolled
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 callersFunctionre
(e)
testdata/twgl-full.min.js:6
↓ 1 callersMethodreadMessage
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 callersMethodreadPayload
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 callersFunctionremoveAttributeTest
removeAttributeTest returns a test for TestRemoveAttribute that selects the element with sel.
query_test.go:999
↓ 1 callersFunctionrequestNode
requestNode returns the ID of the node that the object is.
query.go:567
↓ 1 callersFunctionrequestNodes
requestNodes selects the elements with the given node IDs. It uses the DOM.requestChildNodes command.
query.go:580
↓ 1 callersFunctionresetTest
resetTest returns a test for TestReset that selects the element with sel.
query_test.go:602
↓ 1 callersFunctionretryWithSleep
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 callersFunctionrun
(m *testing.M)
internal/chromedptest/chromedptest.go:95
↓ 1 callersFunctionrun
run runs the program.
device/gen.go:46
↓ 1 callersMethodrun
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 callersMethodrun
(ctx context.Context)
browser.go:338
↓ 1 callersMethodruntimeEvent
runtimeEvent handles incoming runtime events.
target.go:355
↓ 1 callersFunctionsVGFullXPathTest
sVGFullXPathTest returns a test for TestSVGFullXPath that selects the element with sel.
query_test.go:1443
↓ 1 callersFunctionscrollIntoViewTest
scrollIntoViewTest returns a test for TestScrollIntoView that selects the element with sel.
query_test.go:1416
↓ 1 callersFunctionscrollableFlagUpdated
(isScrollable bool)
util.go:247
↓ 1 callersFunctionsearch
search selects elements by the DOM.performSearch command. It matches nodes by plain text, CSS selector or XPath query.
query.go:470
↓ 1 callersFunctionsendKeysTest
sendKeysTest returns a test for TestSendKeys that selects the element with sel.
query_test.go:1124
↓ 1 callersFunctionsetAttributeValueTest
setAttributeValueTest returns a test for TestSetAttributeValue that selects the element with sel.
query_test.go:955
↓ 1 callersFunctionsetAttributesTest
setAttributesTest returns a test for TestSetAttributes that selects the element with sel.
query_test.go:878
↓ 1 callersFunctionsetChildNodes
(m map[cdp.NodeID]*Node, nodes []*Node)
util.go:106
↓ 1 callersFunctionsetChildPipes
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 callersMethodsetFlag
setFlag sets the flag name. A flag that is set again keeps its place.
allocate.go:711
↓ 1 callersFunctionsetValueTest
setValueTest returns a test for TestSetValue that selects the element with sel.
query_test.go:690
↓ 1 callersMethodsetWriteDeadline
()
remote/internal/websocket/conn.go:385
↓ 1 callersFunctionshadowRootPopped
(m map[cdp.NodeID]*Node, id cdp.NodeID)
util.go:208
↓ 1 callersFunctionshadowRootPushed
(m map[cdp.NodeID]*Node, c *Node)
util.go:198
↓ 1 callersFunctionsomethingListens
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 callersFunctionstartBrowserOutput
startBrowserOutput starts to copy src. The goroutine is part of wg, so that the allocator waits for it.
allocate_pipe.go:135
↓ 1 callersFunctionstartCmd
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 callersFunctionstartMarked
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 callersFunctionsubmitTest
submitTest returns a test for TestSubmit that selects the element with sel.
query_test.go:1162
↓ 1 callersFunctiontagEvent
tagEvent wraps the parameters of an event in a JSON object with the method.
session.go:102
↓ 1 callersFunctiontestAllocator
(t *testing.T, modifyURL func(wsURL string) string, wantErr string, opts []Option)
remote/allocator_test.go:101
↓ 1 callersFunctiontestConnAnswersPing
(t *testing.T, delay time.Duration)
remote/conn_test.go:59
↓ 1 callersFunctiontextContentTest
textContentTest returns a test for TestTextContent that selects the element with sel.
query_test.go:518
↓ 1 callersFunctiontextTest
textTest returns a test for TestText that selects the element with sel.
query_test.go:488
↓ 1 callersFunctionvalidCloseCode
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 callersFunctionvalueKind
valueKind names the kind of a value for an error message.
query.go:554
↓ 1 callersFunctionvalueTest
valueTest returns a test for TestValue that selects the element with sel.
query_test.go:644
↓ 1 callersFunctionvisible
()
js/visible.js:1
↓ 1 callersMethodwaitActivePort
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 callersFunctionwaitGoroutines
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 callersFunctionwaitNoRunnerDirs
waitNoRunnerDirs waits until dir has no entry that the allocator made, or until the timeout.
internal/chromedptest/chromedptest.go:166
↓ 1 callersFunctionwaitTargetGone
waitTargetGone polls the browser until the target with the given id is no longer listed, or until ctx is done.
chromedp.go:1137
↓ 1 callersFunctionwindowID
windowID returns the id of the window of the tab of ctx.
newwindow_test.go:14
← previousnext →501–600 of 1,064, ranked by callers