MCPcopy Create free account

hub / github.com/chromedp/chromedp / functions

Functions1,064 in github.com/chromedp/chromedp

↓ 1 callersFunctionSubmit
Submit is an element query action that submits the parent form of the first element node matching the selector.
query.go:1331
↓ 1 callersMethodSubprotocol
Subprotocol returns the subprotocol that the server chose. It is empty when the server chose none.
remote/internal/websocket/conn.go:129
↓ 1 callersFunctionTap
Tap is an element query action that sends a touch tap to the center of the first element node matching the selector. The action scrolls the node into
query.go:1218
↓ 1 callersFunctionU
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionV
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionW
(e,r,t)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionWSURLReadTimeout
WSURLReadTimeout sets how long ExecAllocator waits to read the WebSocket URL. The default is 20 seconds. It only applies to the websocket mode, see [W
allocate.go:924
↓ 1 callersFunctionWaitEvent
WaitEvent makes an action that waits for an event. It subscribes to the event, runs the trigger action, and then returns the first payload for which m
action.go:314
↓ 1 callersFunctionWaitNotVisible
WaitNotVisible is an element query action that waits until the element matching the selector is not visible.
query.go:815
↓ 1 callersFunctionWaitSelected
WaitSelected is an element query action that waits until the element that matches the selector is selected (that is, it has the attribute 'selected').
query.go:827
↓ 1 callersFunctionWithBrowserErrorf
WithBrowserErrorf is a browser option that sets the func that receives error messages.
browser.go:553
↓ 1 callersFunctionWithBrowserLogf
WithBrowserLogf is a browser option that sets the func that receives general log messages.
browser.go:547
↓ 1 callersFunctionWithConnDebugf
WithConnDebugf is a dial option to set a protocol logger.
remote/conn.go:151
↓ 1 callersFunctionWithDialTimeout
WithDialTimeout is an [Option] that sets the timeout for the dial of the websocket address of the browser. The default is ten seconds. Use a zero dura
remote/allocator.go:140
↓ 1 callersFunctionWithNewWindow
WithNewWindow chooses where a new tab opens. By default, the first Run of a context that creates a tab opens it in a new window, so that each tab is v
chromedp.go:689
↓ 1 callersFunctionWithPollingArgs
WithPollingArgs provides extra arguments to pass to the predicate.
poll.go:174
↓ 1 callersFunctionWithPollingInterval
WithPollingInterval polls the predicate at the given interval.
poll.go:142
↓ 1 callersFunctionWithPollingMutation
WithPollingMutation polls the predicate on every DOM mutation.
poll.go:150
↓ 1 callersFunctionWithRuntimeDisabled
WithRuntimeDisabled makes the context attach to its target with the Runtime domain disabled. By default, the first Run sends Runtime.enable, and with
chromedp.go:798
↓ 1 callersMethodWriteRaw
WriteRaw writes bytes as they are.
remote/internal/wstest/wstest.go:170
↓ 1 callersMethodWriteText
WriteText sends an unmasked text frame.
remote/internal/wstest/wstest.go:165
↓ 1 callersFunctionY
()
testdata/twgl-full.min.js:6
↓ 1 callersFunction_e
(e,r,t)
testdata/twgl-full.min.js:6
↓ 1 callersFunctionacceptValue
acceptValue returns the Sec-WebSocket-Accept value for a key. RFC 6455 section 4.2.2 says it is the base64 of the SHA-1 of the key and the GUID.
remote/internal/websocket/handshake.go:182
↓ 1 callersFunctionadRelatedStateUpdated
(provenance *cdp.AdProvenance)
util.go:256
↓ 1 callersMethodadd
(op byte)
remote/internal/websocket/handshake_test.go:590
↓ 1 callersFunctionadoptedStyleSheetsModified
(ids []cdp.StyleSheetID)
util.go:265
↓ 1 callersFunctionaffectedByStartingStylesFlagUpdated
(affected bool)
util.go:274
↓ 1 callersFunctionallocateCmdOptions
(cmd *exec.Cmd)
allocate_linux.go:23
↓ 1 callersMethodallocateKeepOpen
allocateKeepOpen is Allocate for an allocator with KeepOpen.
keepopen.go:141
↓ 1 callersMethodappend
append calls the jsonv2.Marshal func on the value and appends the result to the slice. It records the first error. After an error, append does nothing
call.go:125
↓ 1 callersMethodattachTarget
(ctx context.Context, targetID target.ID)
chromedp.go:567
↓ 1 callersFunctionattributeModified
(name, value string)
util.go:116
↓ 1 callersFunctionattributeRemoved
(name string)
util.go:139
↓ 1 callersMethodattributeValueLocked
attributeValueLocked returns the named attribute. The caller must hold the lock of the node.
node.go:143
↓ 1 callersFunctionattributeValueTest
attributeValueTest returns a test for TestAttributeValue that selects the element with sel.
query_test.go:923
↓ 1 callersFunctionattributesAllTest
attributesAllTest returns a test for TestAttributesAll that selects the element with sel.
query_test.go:810
↓ 1 callersFunctionattributesTest
attributesTest returns a test for TestAttributes that selects the element with sel.
query_test.go:769
↓ 1 callersFunctionbyAttribute
byAttribute is a custom lookup like the example in the documentation of Selectable. It finds the elements that have an attribute with a value.
query_test.go:1823
↓ 1 callersFunctioncallFunctionOnNode
callFunctionOnNode calls the function with the node as its "this" value, and returns the decoded result.
query.go:608
↓ 1 callersFunctioncancelAfterFirst
cancelAfterFirst ranges over seq in a new goroutine. It calls cancel at the first event. The returned channel receives the error that ends the iterati
chromedp_test.go:597
↓ 1 callersFunctioncaptureUserDataDir
captureUserDataDir returns an option that stores the user data directory of the browser in *dir, so that a test can check that the allocator removes i
remote/websocket_test.go:35
↓ 1 callersFunctioncharacterDataModified
(characterData string)
util.go:160
↓ 1 callersFunctioncheckInViewport
checkInViewport returns ErrDragOutsideViewport when a point is outside the visual viewport.
drag.go:81
↓ 1 callersFunctioncheckResponse
checkResponse checks the handshake response as RFC 6455 section 4.2.2 says. It returns the subprotocol that the server chose. The requested argument l
remote/internal/websocket/handshake.go:192
↓ 1 callersFunctioncheckTargets
checkTargets fatals if the browser behind the chromedp context has an unexpected number of pages (tabs).
chromedp_test.go:239
↓ 1 callersFunctionchildNodeCountUpdated
(count int64)
util.go:169
↓ 1 callersFunctionchildNodeInserted
(m map[cdp.NodeID]*Node, prevID cdp.NodeID, c *Node)
util.go:178
↓ 1 callersFunctionchildNodeRemoved
(m map[cdp.NodeID]*Node, id cdp.NodeID)
util.go:188
↓ 1 callersFunctionclearTest
clearTest returns a test for TestClear that selects the element with sel.
query_test.go:559
↓ 1 callersFunctionclickTest
clickTest returns a test for TestClick that selects the element with sel.
query_test.go:1040
↓ 1 callersFunctioncloseResult
closeResult returns the error that the reader gives for a close frame. A normal close gives io.EOF, as does a close without a code.
remote/internal/websocket/close.go:126
↓ 1 callersFunctioncommentText
commentText returns the text of a comment without its markers. A line of code in a doc comment (gofmt indents it with a tab) and a directive become em
docs/docs_test.go:171
↓ 1 callersFunctioncomputedStyleTest
computedStyleTest returns a test for TestComputedStyle that selects the element with sel.
query_test.go:1201
↓ 1 callersFunctionconnectPipe
connectPipe makes a browser that talks to the process through pf, and waits for the first answer of the process. If the pipe closes first, it returns
allocate_pipe.go:190
↓ 1 callersMethodconnectWebSocket
connectWebSocket waits for the websocket address in the output of the browser, and connects to it.
allocate.go:465
↓ 1 callersFunctionconsoleCall
(e *runtime.EventConsoleAPICalled)
console.go:205
↓ 1 callersFunctionconsoleException
(e *runtime.EventExceptionThrown)
console.go:220
↓ 1 callersFunctionconsoleFormat
consoleFormat applies the format specifiers %s, %d, %i, %f, %o, %O, %c and %% of the format to the arguments. It returns the text and the number of ar
console.go:295
↓ 1 callersFunctionconsoleLog
(e *log.EventEntryAdded)
console.go:245
↓ 1 callersFunctionconsoleNested
(p *runtime.ObjectPreview)
console.go:436
↓ 1 callersFunctionconsoleNumber
consoleNumber renders an argument for %d, %i and %f.
console.go:340
↓ 1 callersFunctionconsolePropertyValue
(prop *runtime.PropertyPreview)
console.go:426
↓ 1 callersFunctiondecodeConsole
decodeConsole turns a tagged event into a message.
console.go:169
↓ 1 callersFunctiondecodeRune
decodeRune is a wrapper around parsing a printable c++ int/char definition to a unicode rune value.
kb/gen.go:136
↓ 1 callersMethoddeleteFlag
deleteFlag removes the flag name, if it is set.
allocate.go:719
↓ 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 callersFunctiondetachMessage
detachMessage returns the event of the browser that detaches the session.
browser_test.go:149
↓ 1 callersMethoddetachedError
detachedError returns the error of a command on a detached target.
target.go:343
↓ 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:502
↓ 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:182
↓ 1 callersFunctionextents
(m, n, o, p float64)
screenshot.go:146
↓ 1 callersMethodfail
fail ends the connection after a protocol error. RFC 6455 section 7.1.7 says to send a close frame with the code, and then to close the connection.
remote/internal/websocket/conn.go:393
↓ 1 callersFunctionfailCode
failCode returns the close code that matches an error of the reader. It returns 0 for an error that needs no close frame, such as a network error.
remote/internal/websocket/close.go:73
↓ 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 callersFunctionframeIDs
frameIDs returns the id of each frame in the tree.
listen_test.go:217
↓ 1 callersFunctionget
get retrieves and decodes the device descriptors.
device/gen.go:95
↓ 1 callersMethodget
()
remote/internal/websocket/handshake_test.go:596
↓ 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 callersMethodhandleControl
handleControl reads and handles one control frame. It returns nil when the message read can go on. Otherwise it returns the error that ends the read.
remote/internal/websocket/conn.go:248
↓ 1 callersFunctionhasExactToken
hasExactToken is like hasToken, but it compares the case too.
remote/internal/websocket/handshake.go:238
↓ 1 callersFunctionhasToken
hasToken reports whether one of the header values has the token. The values can hold a list that a comma separates. The comparison ignores the case.
remote/internal/websocket/handshake.go:226
↓ 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 callersMethodisDefined
isDefined reports whether RFC 6455 section 5.2 defines the opcode.
remote/internal/websocket/frame.go:50
← previousnext →401–500 of 1,064, ranked by callers