MCPcopy Create free account

hub / github.com/chromedp/chromedp / functions

Functions1,064 in github.com/chromedp/chromedp

FunctionTestAllocator
(t *testing.T)
remote/allocator_test.go:40
FunctionTestAllocatorBrowserContext
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
FunctionTestAllocatorDialHTTPHeader
(t *testing.T)
remote/conn_test.go:240
FunctionTestAppendHeader
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
FunctionTestAtLeast
(t *testing.T)
query_test.go:182
FunctionTestAttachingToWorkers
(t *testing.T)
chromedp_test.go:1154
FunctionTestAttributeValue
(t *testing.T)
query_test.go:903
FunctionTestAttributes
(t *testing.T)
query_test.go:724
FunctionTestAttributesAll
(t *testing.T)
query_test.go:782
FunctionTestBrowserContext
(t *testing.T)
chromedp_test.go:693
FunctionTestBrowserEvents
(t *testing.T)
chromedp_test.go:431
FunctionTestBrowserTransportPipe
TestBrowserTransportPipe runs a browser over fake pipes, with a goroutine that plays Chrome.
pipe_test.go:232
FunctionTestByFuncCustomLookup
(t *testing.T)
query_test.go:1833
FunctionTestByJSPath
(t *testing.T)
query_test.go:291
FunctionTestCallAfterBrowserKilled
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
FunctionTestCallBrowserError
(t *testing.T)
event_test.go:254
FunctionTestCallCancelStillCanceled
TestCallCancelStillCanceled checks that a call with a canceled context still returns context.Canceled.
remote/websocket_test.go:513
FunctionTestCallFunctionOnNull
TestCallFunctionOnNull makes sure that CallFunctionOn follows the rule of Evaluate for a function that returns null.
eval_test.go:280
FunctionTestCallInvalidContext
(t *testing.T)
event_test.go:243
FunctionTestCallOnDetachedTarget
(t *testing.T)
target_test.go:220
FunctionTestCancelError
(t *testing.T)
chromedp_test.go:300
FunctionTestCancelKeepsKeptBrowser
(t *testing.T)
remote/keepopen_test.go:173
FunctionTestCancelTabDuringAttach
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
FunctionTestCaptureScreenshot
(t *testing.T)
test/screenshot_test.go:157
FunctionTestCheckDisplayLinux
(t *testing.T)
visible_test.go:195
FunctionTestClaudeImportsAgents
(t *testing.T)
docs/docs_test.go:93
FunctionTestClear
(t *testing.T)
query_test.go:531
FunctionTestClick
(t *testing.T)
query_test.go:1023
FunctionTestCloseAfterServerClose
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
FunctionTestCloseDialog
(t *testing.T)
event_test.go:16
FunctionTestCloseEndsWithServerClose
TestCloseEndsWithServerClose checks that Close does not wait when the server answers with its close frame.
remote/internal/websocket/handshake_test.go:710
FunctionTestCloseFrame
TestCloseFrame checks the answer to a close frame, and the error of the reader.
remote/internal/websocket/conn_test.go:362
FunctionTestCloseTwice
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
FunctionTestCloseWaitIsBounded
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
FunctionTestCloseWhileReading
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
FunctionTestCombinedOutput
(t *testing.T)
allocate_test.go:339
FunctionTestCombinedOutput
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
FunctionTestCombinedOutputError
(t *testing.T)
allocate_test.go:369
FunctionTestCommentsAreSimpleEnglish
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
FunctionTestComputedStyle
(t *testing.T)
query_test.go:1184
FunctionTestConcurrentCancel
(t *testing.T)
chromedp_test.go:371
FunctionTestConcurrentWrites
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
FunctionTestConnAnswersPing
(t *testing.T)
remote/conn_test.go:46
FunctionTestConnDebugf
TestConnDebugf checks the lines for the protocol logger.
remote/conn_test.go:374
FunctionTestConnPingWhileWriting
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
FunctionTestConnReadAfterClose
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
FunctionTestConnReadErrors
TestConnReadErrors checks the errors of Read for the frames that end a session.
remote/conn_test.go:262
FunctionTestConsole
(t *testing.T)
console_test.go:34
FunctionTestConsoleBrowserLog
(t *testing.T)
console_test.go:126
FunctionTestConsoleEndsWithContext
(t *testing.T)
console_test.go:172
FunctionTestConsoleNeverRanged
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
FunctionTestConsoleSeveralReaders
(t *testing.T)
console_test.go:153
FunctionTestConsoleText
(t *testing.T)
console_test.go:207
FunctionTestContextEndsAfterDial
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
FunctionTestDecisionIndexIsComplete
(t *testing.T)
docs/docs_test.go:40
FunctionTestDefaultFeatureNames
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
FunctionTestDefaultOptionsHeadless
(t *testing.T)
visible_test.go:45
FunctionTestDetachAfterSessionMessages
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
FunctionTestDetachOnCancel
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
FunctionTestDetached
(t *testing.T)
target_test.go:257
FunctionTestDetachedInvalidContext
(t *testing.T)
target_test.go:358
FunctionTestDetachedNoTarget
(t *testing.T)
target_test.go:341
FunctionTestDialAcceptsServerHeaders
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
FunctionTestDialBadAddress
(t *testing.T)
remote/internal/websocket/handshake_test.go:374
FunctionTestDialContext
(t *testing.T)
remote/internal/websocket/handshake_test.go:428
FunctionTestDialDefaultPort
(t *testing.T)
remote/internal/websocket/handshake_test.go:177
FunctionTestDialErrors
(t *testing.T)
remote/internal/websocket/handshake_test.go:212
FunctionTestDialHTTPHeader
(t *testing.T)
remote/conn_test.go:199
FunctionTestDialHTTPHeaderAbsent
(t *testing.T)
remote/conn_test.go:226
FunctionTestDialHostHeader
(t *testing.T)
remote/internal/websocket/handshake_test.go:118
FunctionTestDialIPv6
(t *testing.T)
remote/internal/websocket/handshake_test.go:157
FunctionTestDialKeysDiffer
TestDialKeysDiffer checks that each dial uses a new key.
remote/internal/websocket/handshake_test.go:100
FunctionTestDialMaxMessageSize
TestDialMaxMessageSize checks the limit that the dialer sets.
remote/internal/websocket/handshake_test.go:825
FunctionTestDialRedirect
(t *testing.T)
remote/internal/websocket/handshake_test.go:352
FunctionTestDialSendsHandshake
(t *testing.T)
remote/internal/websocket/handshake_test.go:43
FunctionTestDialServerClosesAtOnce
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
FunctionTestDialSubprotocol
(t *testing.T)
remote/internal/websocket/handshake_test.go:338
FunctionTestDialSubprotocolIsCaseSensitive
TestDialSubprotocolIsCaseSensitive checks that the dial compares the subprotocol as it was given.
remote/internal/websocket/handshake_test.go:805
FunctionTestDialTLS
(t *testing.T)
remote/internal/websocket/handshake_test.go:385
FunctionTestDialTLSHandshakeTimeout
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
FunctionTestDialTimeout
(t *testing.T)
remote/websocket_test.go:45
FunctionTestDialUserInfo
(t *testing.T)
remote/internal/websocket/handshake_test.go:142
FunctionTestDimensions
(t *testing.T)
query_test.go:431
FunctionTestDirectCloseBrowser
(t *testing.T)
chromedp_test.go:1019
FunctionTestDirectCloseTarget
(t *testing.T)
chromedp_test.go:997
FunctionTestDocumentUpdatedAfterFailedGetDocument
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
FunctionTestDoubleClick
(t *testing.T)
query_test.go:1062
FunctionTestDownloadIntoDir
(t *testing.T)
chromedp_test.go:1037
FunctionTestDragAndDrop
(t *testing.T)
drag_test.go:11
FunctionTestDragAndDropMovesTheNode
(t *testing.T)
drag_test.go:56
FunctionTestDragAndDropOutsideViewport
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
FunctionTestDragAndDropScrolls
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
FunctionTestDragAndDropTwice
TestDragAndDropTwice makes sure that the action turns the interception off, because a second drag then starts from a clean state.
drag_test.go:129
FunctionTestDragAndDropXY
(t *testing.T)
drag_test.go:90
FunctionTestDragAndDropXYReleasesAfterError
TestDragAndDropXYReleasesAfterError makes sure that the action releases the mouse button when the context ends in the middle of a drag.
drag_test.go:203
FunctionTestEmulate
(t *testing.T)
emulate_test.go:11
FunctionTestEnv
(t *testing.T)
allocate_test.go:405
FunctionTestErrNoDisplay
(t *testing.T)
visible_test.go:150
FunctionTestEvaluateAwaitPromise
TestEvaluateAwaitPromise makes sure that EvalAwaitPromise waits for a promise and that a rejected promise is an error.
eval_test.go:228
FunctionTestEvaluateBytes
(t *testing.T)
eval_test.go:89
← previousnext →701–800 of 1,064, ranked by callers