Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chromedp/chromedp
/ functions
Functions
912 in github.com/chromedp/chromedp
⨍
Functions
912
◇
Types & classes
69
↓ 1 callers
Function
describeLeak
describeLeak lists the files under dir, to help find who left it.
chromedp_test.go:1575
↓ 1 callers
Function
describeLeak
describeLeak lists the files under dir, to help find who left it.
internal/chromedptest/chromedptest.go:184
↓ 1 callers
Function
detachCmd
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 callers
Function
dimensionsTest
dimensionsTest returns a test for TestDimensions that selects the element with sel.
query_test.go:451
↓ 1 callers
Function
distributedNodesUpdated
(nodes []*cdp.BackendNode)
util.go:238
↓ 1 callers
Function
doubleClickTest
doubleClickTest returns a test for TestDoubleClick that selects the element with sel.
query_test.go:1079
↓ 1 callers
Function
dragNative
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 callers
Function
draggableAt
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 callers
Function
evaluatePath
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 callers
Function
exceptionString
exceptionString returns a readable description of an exception.
errors.go:22
↓ 1 callers
Function
exposedCall
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 callers
Function
extents
(m, n, o, p float64)
screenshot.go:146
↓ 1 callers
Function
files
files returns the contents of every file under dir by relative path, and fails on a symbolic link.
docs/docs_test.go:254
↓ 1 callers
Method
finish
finish ends the subscription after it delivered the queued events.
session.go:155
↓ 1 callers
Method
finish
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 callers
Function
focusBlurTest
focusBlurTest returns a test for TestFocusBlur that selects the element with sel.
query_test.go:405
↓ 1 callers
Function
forceIP
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 callers
Function
frameAttached
(id cdp.FrameID)
util.go:27
↓ 1 callers
Function
get
get retrieves and decodes the device descriptors.
device/gen.go:95
↓ 1 callers
Function
getBrowserContext
(tb testing.TB, ctx context.Context)
chromedp_test.go:966
↓ 1 callers
Function
goFiles
goFiles returns every Go file of the repository.
docs/docs_test.go:207
↓ 1 callers
Function
inlineStyleInvalidated
(ids []cdp.NodeID)
util.go:155
↓ 1 callers
Function
innerHTMLTest
innerHTMLTest returns a test for TestInnerHTML that selects the element with sel.
query_test.go:1353
↓ 1 callers
Function
insertNode
(n []*Node, prevID cdp.NodeID, c *Node)
util.go:283
↓ 1 callers
Function
isJSONNull
isJSONNull reports whether value is the JSON literal null.
eval.go:112
↓ 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
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
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
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
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:446
↓ 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
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:96
↓ 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:460
↓ 1 callers
Function
queryOne
queryOne selects a single element by the DOM.querySelector command.
query.go:444
↓ 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
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:566
↓ 1 callers
Function
requestNodes
requestNodes selects the elements with the given node IDs. It uses the DOM.requestChildNodes command.
query.go:579
↓ 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:983
↓ 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)
target.go:102
↓ 1 callers
Method
run
(ctx context.Context)
browser.go:337
↓ 1 callers
Method
runtimeEvent
runtimeEvent handles incoming runtime events.
target.go:251
↓ 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:469
↓ 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
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
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
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
← previous
next →
401–500 of 912, ranked by callers