MCPcopy Create free account

hub / github.com/chromedp/chromedp / functions

Functions912 in github.com/chromedp/chromedp

MethodRead
Read reads the next message. It answers a ping frame with a pong frame and skips a pong frame, as RFC 6455 section 5.5 requires. A server can send a p
remote/conn.go:114
FunctionResetViewport
ResetViewport is an action that resets the browser viewport to the values that the browser started with. Note: it does not change the emulated User-A
emulate.go:84
MethodSetDebugf
SetDebugf sets the protocol logger. chromedp.NewBrowserTransport calls it with the logger of the browser.
remote/conn.go:101
FunctionSleep
Sleep is an action that waits for the duration, or until the context ends.
action.go:227
MethodString
String satisfies stringer interface.
node.go:352
MethodString
String returns the output that was kept.
allocate_pipe.go:181
MethodString
String satisfies stringer interface.
frame.go:52
MethodString
String satisfies fmt.Stringer.
device/device.go:53
MethodSubscribe
Subscribe starts to buffer the browser events with the method, and returns the channel that the raw event parameters arrive on. It satisfies [cdp.Sess
browser.go:242
MethodSubscribe
Subscribe subscribes on the session, and ends the subscription when the context ends.
action.go:175
FunctionT
(e,r,t,n)
testdata/twgl-full.min.js:6
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:259
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
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
FunctionTestCloseDialog
(t *testing.T)
event_test.go:16
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
FunctionTestConnAnswersPing
(t *testing.T)
remote/conn_test.go:61
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:130
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
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
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
FunctionTestDialHTTPHeader
(t *testing.T)
remote/conn_test.go:218
FunctionTestDialHTTPHeaderAbsent
(t *testing.T)
remote/conn_test.go:245
FunctionTestDialTimeout
(t *testing.T)
remote/websocket_test.go:45
FunctionTestDimensions
(t *testing.T)
query_test.go:431
FunctionTestDirectCloseBrowser
(t *testing.T)
chromedp_test.go:1019
FunctionTestDirectCloseTarget
(t *testing.T)
chromedp_test.go:997
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
FunctionTestEvaluateLargeResult
TestEvaluateLargeResult makes the browser send one result of 30 MB on the pipe. The pipe reads up to a zero byte, so a limit makes the test fail. The
eval_test.go:167
FunctionTestEvaluateLargeResult
TestEvaluateLargeResult makes the browser send one result of 30 MB on the websocket. The websocket reads one frame, so a limit makes the test fail. Th
remote/websocket_test.go:235
FunctionTestEvaluateNil
(t *testing.T)
eval_test.go:245
FunctionTestEvaluateNullAndUndefined
TestEvaluateNullAndUndefined makes sure that the expression null gives ErrJSNull and the expression undefined gives ErrJSUndefined, for a type that ca
eval_test.go:196
FunctionTestEvaluateNumber
(t *testing.T)
eval_test.go:13
FunctionTestEvaluateRemoteObject
(t *testing.T)
eval_test.go:124
FunctionTestEvaluateString
(t *testing.T)
eval_test.go:51
FunctionTestEvents
(t *testing.T)
chromedp_test.go:479
FunctionTestEventsCancel
(t *testing.T)
chromedp_test.go:616
FunctionTestExecAllocator
(t *testing.T)
allocate_test.go:33
FunctionTestExecAllocatorCancelParent
(t *testing.T)
allocate_test.go:65
FunctionTestExecAllocatorCombinedOutputPanic
(t *testing.T)
allocate_test.go:88
FunctionTestExecAllocatorDebugf
TestExecAllocatorDebugf makes sure that the protocol logger of the browser receives the messages of the websocket. The connection gets the logger thro
remote/websocket_test.go:279
FunctionTestExecAllocatorDialer
TestExecAllocatorDialer checks that the allocator calls the dialer with the websocket address of the browser, and that it returns the error of the dia
pipe_test.go:452
FunctionTestExecAllocatorKillBrowser
(t *testing.T)
allocate_test.go:120
FunctionTestExecAllocatorMissingWebsocketAddr
(t *testing.T)
allocate_test.go:315
FunctionTestExecAllocatorNeedsDialer
TestExecAllocatorNeedsDialer checks that the allocator returns ErrNoDialer when it needs a websocket and has no dialer. The option KeepOpen and the fl
pipe_test.go:417
FunctionTestExecAllocatorPipe
(t *testing.T)
pipe_test.go:289
FunctionTestExecAllocatorPipeKillBrowser
TestExecAllocatorPipeKillBrowser checks that a killed Chrome closes the pipe.
pipe_test.go:325
FunctionTestExecAllocatorPipeStartFailure
(t *testing.T)
pipe_test.go:357
FunctionTestExecAllocatorWebSocket
TestExecAllocatorWebSocket checks that the websocket mode works, and that the flags for a debugging port or address select it. Only the websocket mode
remote/websocket_test.go:102
FunctionTestExecLocationsOtherSystemsHaveNoEdge
(t *testing.T)
execpath_test.go:37
FunctionTestExecLocationsWindowsFallsBackToEdge
(t *testing.T)
execpath_test.go:9
FunctionTestExitErrorAfterKill
TestExitErrorAfterKill kills the browser process and checks that the next call returns the exit error of the process. See the issue 408.
allocate_test.go:180
← previousnext →601–700 of 912, ranked by callers