MCPcopy Create free account

hub / github.com/chromedp/chromedp / functions

Functions912 in github.com/chromedp/chromedp

↓ 1 callersFunctiondescribeLeak
describeLeak lists the files under dir, to help find who left it.
chromedp_test.go:1575
↓ 1 callersFunctiondescribeLeak
describeLeak lists the files under dir, to help find who left it.
internal/chromedptest/chromedptest.go:184
↓ 1 callersFunctiondetachCmd
detachCmd makes the process of cmd start in a new session. The browser then keeps running when the Go program exits or when the terminal closes.
allocate_detach_unix.go:12
↓ 1 callersFunctiondimensionsTest
dimensionsTest returns a test for TestDimensions that selects the element with sel.
query_test.go:451
↓ 1 callersFunctiondistributedNodesUpdated
(nodes []*cdp.BackendNode)
util.go:238
↓ 1 callersFunctiondoubleClickTest
doubleClickTest returns a test for TestDoubleClick that selects the element with sel.
query_test.go:1079
↓ 1 callersFunctiondragNative
dragNative continues a drag that the browser intercepted. The mouse is at the point from, and the drag ends at the point to after the given number of
drag.go:277
↓ 1 callersFunctiondraggableAt
draggableAt reports whether the element at the point can start a native drag: an element inside a node with draggable="true", a link or an image. It r
drag.go:116
↓ 1 callersFunctionevaluatePath
evaluatePath selects the elements that a JavaScript expression gives, by the Runtime.evaluate command. The expression can give a node, an array or a N
query.go:501
↓ 1 callersFunctionexceptionString
exceptionString returns a readable description of an exception.
errors.go:22
↓ 1 callersFunctionexposedCall
exposedCall runs one call of an exposed func, and sends the result back to the context of the page that made the call.
expose.go:177
↓ 1 callersFunctionextents
(m, n, o, p float64)
screenshot.go:146
↓ 1 callersFunctionfiles
files returns the contents of every file under dir by relative path, and fails on a symbolic link.
docs/docs_test.go:254
↓ 1 callersMethodfinish
finish ends the subscription after it delivered the queued events.
session.go:155
↓ 1 callersMethodfinish
finish waits for the rest of the output after the browser process exited. A leftover child process can keep the pipe open, so it gives up after output
allocate_pipe.go:171
↓ 1 callersFunctionfocusBlurTest
focusBlurTest returns a test for TestFocusBlur that selects the element with sel.
query_test.go:405
↓ 1 callersFunctionforceIP
forceIP tries to force the host component in urlstr to be an IP address. Since Chrome 66, clients of the Chrome DevTools Protocol that connect to a b
remote/util.go:18
↓ 1 callersFunctionframeAttached
(id cdp.FrameID)
util.go:27
↓ 1 callersFunctionget
get retrieves and decodes the device descriptors.
device/gen.go:95
↓ 1 callersFunctiongetBrowserContext
(tb testing.TB, ctx context.Context)
chromedp_test.go:966
↓ 1 callersFunctiongoFiles
goFiles returns every Go file of the repository.
docs/docs_test.go:207
↓ 1 callersFunctioninlineStyleInvalidated
(ids []cdp.NodeID)
util.go:155
↓ 1 callersFunctioninnerHTMLTest
innerHTMLTest returns a test for TestInnerHTML that selects the element with sel.
query_test.go:1353
↓ 1 callersFunctioninsertNode
(n []*Node, prevID cdp.NodeID, c *Node)
util.go:283
↓ 1 callersFunctionisJSONNull
isJSONNull reports whether value is the JSON literal null.
eval.go:112
↓ 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 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 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 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 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:446
↓ 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 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:96
↓ 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:460
↓ 1 callersFunctionqueryOne
queryOne selects a single element by the DOM.querySelector command.
query.go:444
↓ 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 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:566
↓ 1 callersFunctionrequestNodes
requestNodes selects the elements with the given node IDs. It uses the DOM.requestChildNodes command.
query.go:579
↓ 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:983
↓ 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)
target.go:102
↓ 1 callersMethodrun
(ctx context.Context)
browser.go:337
↓ 1 callersMethodruntimeEvent
runtimeEvent handles incoming runtime events.
target.go:251
↓ 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:469
↓ 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 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 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 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
← previousnext →401–500 of 912, ranked by callers