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
Submit
Submit is an element query action that submits the parent form of the first element node matching the selector.
query.go:1331
↓ 1 callers
Method
Subprotocol
Subprotocol returns the subprotocol that the server chose. It is empty when the server chose none.
remote/internal/websocket/conn.go:129
↓ 1 callers
Function
Tap
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 callers
Function
U
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
V
(e,r)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
W
(e,r,t)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
WSURLReadTimeout
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 callers
Function
WaitEvent
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 callers
Function
WaitNotVisible
WaitNotVisible is an element query action that waits until the element matching the selector is not visible.
query.go:815
↓ 1 callers
Function
WaitSelected
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 callers
Function
WithBrowserErrorf
WithBrowserErrorf is a browser option that sets the func that receives error messages.
browser.go:553
↓ 1 callers
Function
WithBrowserLogf
WithBrowserLogf is a browser option that sets the func that receives general log messages.
browser.go:547
↓ 1 callers
Function
WithConnDebugf
WithConnDebugf is a dial option to set a protocol logger.
remote/conn.go:151
↓ 1 callers
Function
WithDialTimeout
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 callers
Function
WithNewWindow
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 callers
Function
WithPollingArgs
WithPollingArgs provides extra arguments to pass to the predicate.
poll.go:174
↓ 1 callers
Function
WithPollingInterval
WithPollingInterval polls the predicate at the given interval.
poll.go:142
↓ 1 callers
Function
WithPollingMutation
WithPollingMutation polls the predicate on every DOM mutation.
poll.go:150
↓ 1 callers
Function
WithRuntimeDisabled
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 callers
Method
WriteRaw
WriteRaw writes bytes as they are.
remote/internal/wstest/wstest.go:170
↓ 1 callers
Method
WriteText
WriteText sends an unmasked text frame.
remote/internal/wstest/wstest.go:165
↓ 1 callers
Function
Y
()
testdata/twgl-full.min.js:6
↓ 1 callers
Function
_e
(e,r,t)
testdata/twgl-full.min.js:6
↓ 1 callers
Function
acceptValue
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 callers
Function
adRelatedStateUpdated
(provenance *cdp.AdProvenance)
util.go:256
↓ 1 callers
Method
add
(op byte)
remote/internal/websocket/handshake_test.go:590
↓ 1 callers
Function
adoptedStyleSheetsModified
(ids []cdp.StyleSheetID)
util.go:265
↓ 1 callers
Function
affectedByStartingStylesFlagUpdated
(affected bool)
util.go:274
↓ 1 callers
Function
allocateCmdOptions
(cmd *exec.Cmd)
allocate_linux.go:23
↓ 1 callers
Method
allocateKeepOpen
allocateKeepOpen is Allocate for an allocator with KeepOpen.
keepopen.go:141
↓ 1 callers
Method
append
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 callers
Method
attachTarget
(ctx context.Context, targetID target.ID)
chromedp.go:567
↓ 1 callers
Function
attributeModified
(name, value string)
util.go:116
↓ 1 callers
Function
attributeRemoved
(name string)
util.go:139
↓ 1 callers
Method
attributeValueLocked
attributeValueLocked returns the named attribute. The caller must hold the lock of the node.
node.go:143
↓ 1 callers
Function
attributeValueTest
attributeValueTest returns a test for TestAttributeValue that selects the element with sel.
query_test.go:923
↓ 1 callers
Function
attributesAllTest
attributesAllTest returns a test for TestAttributesAll that selects the element with sel.
query_test.go:810
↓ 1 callers
Function
attributesTest
attributesTest returns a test for TestAttributes that selects the element with sel.
query_test.go:769
↓ 1 callers
Function
byAttribute
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 callers
Function
callFunctionOnNode
callFunctionOnNode calls the function with the node as its "this" value, and returns the decoded result.
query.go:608
↓ 1 callers
Function
cancelAfterFirst
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 callers
Function
captureUserDataDir
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 callers
Function
characterDataModified
(characterData string)
util.go:160
↓ 1 callers
Function
checkInViewport
checkInViewport returns ErrDragOutsideViewport when a point is outside the visual viewport.
drag.go:81
↓ 1 callers
Function
checkResponse
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 callers
Function
checkTargets
checkTargets fatals if the browser behind the chromedp context has an unexpected number of pages (tabs).
chromedp_test.go:239
↓ 1 callers
Function
childNodeCountUpdated
(count int64)
util.go:169
↓ 1 callers
Function
childNodeInserted
(m map[cdp.NodeID]*Node, prevID cdp.NodeID, c *Node)
util.go:178
↓ 1 callers
Function
childNodeRemoved
(m map[cdp.NodeID]*Node, id cdp.NodeID)
util.go:188
↓ 1 callers
Function
clearTest
clearTest returns a test for TestClear that selects the element with sel.
query_test.go:559
↓ 1 callers
Function
clickTest
clickTest returns a test for TestClick that selects the element with sel.
query_test.go:1040
↓ 1 callers
Function
closeResult
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 callers
Function
commentText
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 callers
Function
computedStyleTest
computedStyleTest returns a test for TestComputedStyle that selects the element with sel.
query_test.go:1201
↓ 1 callers
Function
connectPipe
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 callers
Method
connectWebSocket
connectWebSocket waits for the websocket address in the output of the browser, and connects to it.
allocate.go:465
↓ 1 callers
Function
consoleCall
(e *runtime.EventConsoleAPICalled)
console.go:205
↓ 1 callers
Function
consoleException
(e *runtime.EventExceptionThrown)
console.go:220
↓ 1 callers
Function
consoleFormat
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 callers
Function
consoleLog
(e *log.EventEntryAdded)
console.go:245
↓ 1 callers
Function
consoleNested
(p *runtime.ObjectPreview)
console.go:436
↓ 1 callers
Function
consoleNumber
consoleNumber renders an argument for %d, %i and %f.
console.go:340
↓ 1 callers
Function
consolePropertyValue
(prop *runtime.PropertyPreview)
console.go:426
↓ 1 callers
Function
decodeConsole
decodeConsole turns a tagged event into a message.
console.go:169
↓ 1 callers
Function
decodeRune
decodeRune is a wrapper around parsing a printable c++ int/char definition to a unicode rune value.
kb/gen.go:136
↓ 1 callers
Method
deleteFlag
deleteFlag removes the flag name, if it is set.
allocate.go:719
↓ 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
detachMessage
detachMessage returns the event of the browser that detaches the session.
browser_test.go:149
↓ 1 callers
Method
detachedError
detachedError returns the error of a command on a detached target.
target.go:343
↓ 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:502
↓ 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:182
↓ 1 callers
Function
extents
(m, n, o, p float64)
screenshot.go:146
↓ 1 callers
Method
fail
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 callers
Function
failCode
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 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
frameIDs
frameIDs returns the id of each frame in the tree.
listen_test.go:217
↓ 1 callers
Function
get
get retrieves and decodes the device descriptors.
device/gen.go:95
↓ 1 callers
Method
get
()
remote/internal/websocket/handshake_test.go:596
↓ 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
Method
handleControl
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 callers
Function
hasExactToken
hasExactToken is like hasToken, but it compares the case too.
remote/internal/websocket/handshake.go:238
↓ 1 callers
Function
hasToken
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 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
Method
isDefined
isDefined reports whether RFC 6455 section 5.2 defines the opcode.
remote/internal/websocket/frame.go:50
← previous
next →
401–500 of 1,064, ranked by callers