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
Function
TestAllocator
(t *testing.T)
remote/allocator_test.go:40
Function
TestAllocatorBrowserContext
TestAllocatorBrowserContext checks the browser contexts of a context that the remote allocator makes. The first context creates a browser context, and
remote/websocket_test.go:366
Function
TestAllocatorDialHTTPHeader
(t *testing.T)
remote/conn_test.go:240
Function
TestAppendHeader
TestAppendHeader checks the header of a client frame. RFC 6455 section 5.7 has the masked "Hello" frame 81 85 37 fa 21 3d 7f 9f 4d 51 58.
remote/internal/websocket/frame_test.go:65
Function
TestAtLeast
(t *testing.T)
query_test.go:182
Function
TestAttachingToWorkers
(t *testing.T)
chromedp_test.go:1154
Function
TestAttributeValue
(t *testing.T)
query_test.go:903
Function
TestAttributes
(t *testing.T)
query_test.go:724
Function
TestAttributesAll
(t *testing.T)
query_test.go:782
Function
TestBrowserContext
(t *testing.T)
chromedp_test.go:693
Function
TestBrowserEvents
(t *testing.T)
chromedp_test.go:431
Function
TestBrowserTransportPipe
TestBrowserTransportPipe runs a browser over fake pipes, with a goroutine that plays Chrome.
pipe_test.go:232
Function
TestByFuncCustomLookup
(t *testing.T)
query_test.go:1833
Function
TestByJSPath
(t *testing.T)
query_test.go:291
Function
TestCallAfterBrowserKilled
TestCallAfterBrowserKilled checks that a direct call with a context that never ends returns an error after the browser dies, and does not hang. See th
remote/websocket_test.go:460
Function
TestCallBrowserError
(t *testing.T)
event_test.go:254
Function
TestCallCancelStillCanceled
TestCallCancelStillCanceled checks that a call with a canceled context still returns context.Canceled.
remote/websocket_test.go:513
Function
TestCallFunctionOnNull
TestCallFunctionOnNull makes sure that CallFunctionOn follows the rule of Evaluate for a function that returns null.
eval_test.go:280
Function
TestCallInvalidContext
(t *testing.T)
event_test.go:243
Function
TestCallOnDetachedTarget
(t *testing.T)
target_test.go:220
Function
TestCancelError
(t *testing.T)
chromedp_test.go:300
Function
TestCancelKeepsKeptBrowser
(t *testing.T)
remote/keepopen_test.go:173
Function
TestCancelTabDuringAttach
TestCancelTabDuringAttach cancels a tab context while its first Do attaches the target. The cancellation watcher reads Context.Target at that moment,
chromedp_test.go:399
Function
TestCaptureScreenshot
(t *testing.T)
test/screenshot_test.go:157
Function
TestCheckDisplayLinux
(t *testing.T)
visible_test.go:195
Function
TestClaudeImportsAgents
(t *testing.T)
docs/docs_test.go:93
Function
TestClear
(t *testing.T)
query_test.go:531
Function
TestClick
(t *testing.T)
query_test.go:1023
Function
TestCloseAfterServerClose
TestCloseAfterServerClose checks that the client closes the network connection when it echoes the close frame, and that Close then returns nil every t
remote/internal/websocket/conn_test.go:564
Function
TestCloseDialog
(t *testing.T)
event_test.go:16
Function
TestCloseEndsWithServerClose
TestCloseEndsWithServerClose checks that Close does not wait when the server answers with its close frame.
remote/internal/websocket/handshake_test.go:710
Function
TestCloseFrame
TestCloseFrame checks the answer to a close frame, and the error of the reader.
remote/internal/websocket/conn_test.go:362
Function
TestCloseTwice
TestCloseTwice checks that Close sends one close frame, and that a second call and a read after Close are safe.
remote/internal/websocket/conn_test.go:464
Function
TestCloseWaitIsBounded
TestCloseWaitIsBounded checks that Close returns after about one second when the server reads the close frame and never answers.
remote/internal/websocket/handshake_test.go:674
Function
TestCloseWhileReading
TestCloseWhileReading checks that Close ends a blocked read, with an error that wraps net.ErrClosed. It uses net.Pipe, which supports deadlines.
remote/internal/websocket/conn_test.go:488
Function
TestCombinedOutput
(t *testing.T)
allocate_test.go:339
Function
TestCombinedOutput
TestCombinedOutput checks that the websocket mode prints the address line in the combined output, and that the output holds all messages of the page.
remote/websocket_test.go:207
Function
TestCombinedOutputError
(t *testing.T)
allocate_test.go:369
Function
TestCommentsAreSimpleEnglish
TestCommentsAreSimpleEnglish applies the same rules to the comments in the Go files. It skips the indented lines of a doc comment, because they are co
docs/docs_test.go:149
Function
TestComputedStyle
(t *testing.T)
query_test.go:1184
Function
TestConcurrentCancel
(t *testing.T)
chromedp_test.go:371
Function
TestConcurrentWrites
TestConcurrentWrites runs writers and a ping answer at the same time. The race detector must find nothing, and each frame must be whole.
remote/internal/websocket/conn_test.go:524
Function
TestConnAnswersPing
(t *testing.T)
remote/conn_test.go:46
Function
TestConnDebugf
TestConnDebugf checks the lines for the protocol logger.
remote/conn_test.go:374
Function
TestConnPingWhileWriting
TestConnPingWhileWriting sends pings while the client writes messages. The race detector must find no data race, and each frame must arrive whole.
remote/conn_test.go:111
Function
TestConnReadAfterClose
TestConnReadAfterClose checks that a read after Close, and a read that Close ends, give an error that wraps net.ErrClosed.
remote/conn_test.go:337
Function
TestConnReadErrors
TestConnReadErrors checks the errors of Read for the frames that end a session.
remote/conn_test.go:262
Function
TestConsole
(t *testing.T)
console_test.go:34
Function
TestConsoleBrowserLog
(t *testing.T)
console_test.go:126
Function
TestConsoleEndsWithContext
(t *testing.T)
console_test.go:172
Function
TestConsoleNeverRanged
TestConsoleNeverRanged makes sure that canceling the context ends the subscription of an iterator that the program never ranged over. Before, the goro
console_test.go:271
Function
TestConsoleSeveralReaders
(t *testing.T)
console_test.go:153
Function
TestConsoleText
(t *testing.T)
console_test.go:207
Function
TestContextEndsAfterDial
TestContextEndsAfterDial checks that the connection works after the context of the dial is done. The allocator cancels its dial context at once.
remote/internal/websocket/handshake_test.go:479
Function
TestDecisionIndexIsComplete
(t *testing.T)
docs/docs_test.go:40
Function
TestDefaultFeatureNames
TestDefaultFeatureNames makes sure that no feature in the list of the default options has the form of a command line switch. Chrome names a feature in
allocate_test.go:161
Function
TestDefaultOptionsHeadless
(t *testing.T)
visible_test.go:45
Function
TestDetachAfterSessionMessages
TestDetachAfterSessionMessages makes the browser read a message of a session and then the detach of that session. The browser must route the message t
browser_test.go:160
Function
TestDetachOnCancel
TestDetachOnCancel checks that the cancellation of a context closes its tab by default, and leaves the tab open with WithDetachOnCancel. See the issue
remote/websocket_test.go:537
Function
TestDetached
(t *testing.T)
target_test.go:257
Function
TestDetachedInvalidContext
(t *testing.T)
target_test.go:358
Function
TestDetachedNoTarget
(t *testing.T)
target_test.go:341
Function
TestDialAcceptsServerHeaders
TestDialAcceptsServerHeaders checks the cases that the client must accept: the case of the header values, and a list in Connection.
remote/internal/websocket/handshake_test.go:312
Function
TestDialBadAddress
(t *testing.T)
remote/internal/websocket/handshake_test.go:374
Function
TestDialContext
(t *testing.T)
remote/internal/websocket/handshake_test.go:428
Function
TestDialDefaultPort
(t *testing.T)
remote/internal/websocket/handshake_test.go:177
Function
TestDialErrors
(t *testing.T)
remote/internal/websocket/handshake_test.go:212
Function
TestDialHTTPHeader
(t *testing.T)
remote/conn_test.go:199
Function
TestDialHTTPHeaderAbsent
(t *testing.T)
remote/conn_test.go:226
Function
TestDialHostHeader
(t *testing.T)
remote/internal/websocket/handshake_test.go:118
Function
TestDialIPv6
(t *testing.T)
remote/internal/websocket/handshake_test.go:157
Function
TestDialKeysDiffer
TestDialKeysDiffer checks that each dial uses a new key.
remote/internal/websocket/handshake_test.go:100
Function
TestDialMaxMessageSize
TestDialMaxMessageSize checks the limit that the dialer sets.
remote/internal/websocket/handshake_test.go:825
Function
TestDialRedirect
(t *testing.T)
remote/internal/websocket/handshake_test.go:352
Function
TestDialSendsHandshake
(t *testing.T)
remote/internal/websocket/handshake_test.go:43
Function
TestDialServerClosesAtOnce
TestDialServerClosesAtOnce checks that a server that closes the connection before it answers gives an error that wraps io.EOF, whatever the timing.
remote/internal/websocket/handshake_test.go:548
Function
TestDialSubprotocol
(t *testing.T)
remote/internal/websocket/handshake_test.go:338
Function
TestDialSubprotocolIsCaseSensitive
TestDialSubprotocolIsCaseSensitive checks that the dial compares the subprotocol as it was given.
remote/internal/websocket/handshake_test.go:805
Function
TestDialTLS
(t *testing.T)
remote/internal/websocket/handshake_test.go:385
Function
TestDialTLSHandshakeTimeout
TestDialTLSHandshakeTimeout checks that a server that accepts the TCP connection and never answers the TLS handshake ends the dial.
remote/internal/websocket/handshake_test.go:747
Function
TestDialTimeout
(t *testing.T)
remote/websocket_test.go:45
Function
TestDialUserInfo
(t *testing.T)
remote/internal/websocket/handshake_test.go:142
Function
TestDimensions
(t *testing.T)
query_test.go:431
Function
TestDirectCloseBrowser
(t *testing.T)
chromedp_test.go:1019
Function
TestDirectCloseTarget
(t *testing.T)
chromedp_test.go:997
Function
TestDocumentUpdatedAfterFailedGetDocument
A failed DOM.getDocument must not leave the old root in place. Otherwise the next DOM.documentUpdated event closes its channel again and panics.
target_test.go:55
Function
TestDoubleClick
(t *testing.T)
query_test.go:1062
Function
TestDownloadIntoDir
(t *testing.T)
chromedp_test.go:1037
Function
TestDragAndDrop
(t *testing.T)
drag_test.go:11
Function
TestDragAndDropMovesTheNode
(t *testing.T)
drag_test.go:56
Function
TestDragAndDropOutsideViewport
TestDragAndDropOutsideViewport makes sure that a drag between two nodes that do not fit in the viewport together returns an error and does not press t
drag_test.go:182
Function
TestDragAndDropScrolls
TestDragAndDropScrolls makes sure that a drag between two nodes works when scrolling the second node into view moves the first node, as long as both f
drag_test.go:160
Function
TestDragAndDropTwice
TestDragAndDropTwice makes sure that the action turns the interception off, because a second drag then starts from a clean state.
drag_test.go:129
Function
TestDragAndDropXY
(t *testing.T)
drag_test.go:90
Function
TestDragAndDropXYReleasesAfterError
TestDragAndDropXYReleasesAfterError makes sure that the action releases the mouse button when the context ends in the middle of a drag.
drag_test.go:203
Function
TestEmulate
(t *testing.T)
emulate_test.go:11
Function
TestEnv
(t *testing.T)
allocate_test.go:405
Function
TestErrNoDisplay
(t *testing.T)
visible_test.go:150
Function
TestEvaluateAwaitPromise
TestEvaluateAwaitPromise makes sure that EvalAwaitPromise waits for a promise and that a rejected promise is an error.
eval_test.go:228
Function
TestEvaluateBytes
(t *testing.T)
eval_test.go:89
← previous
next →
701–800 of 1,064, ranked by callers