Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chromedp/chromedp
/ functions
Functions
912 in github.com/chromedp/chromedp
⨍
Functions
912
◇
Types & classes
69
Method
Read
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
Function
ResetViewport
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
Method
SetDebugf
SetDebugf sets the protocol logger. chromedp.NewBrowserTransport calls it with the logger of the browser.
remote/conn.go:101
Function
Sleep
Sleep is an action that waits for the duration, or until the context ends.
action.go:227
Method
String
String satisfies stringer interface.
node.go:352
Method
String
String returns the output that was kept.
allocate_pipe.go:181
Method
String
String satisfies stringer interface.
frame.go:52
Method
String
String satisfies fmt.Stringer.
device/device.go:53
Method
Subscribe
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
Method
Subscribe
Subscribe subscribes on the session, and ends the subscription when the context ends.
action.go:175
Function
T
(e,r,t,n)
testdata/twgl-full.min.js:6
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:259
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
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
TestCloseDialog
(t *testing.T)
event_test.go:16
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
TestConnAnswersPing
(t *testing.T)
remote/conn_test.go:61
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:130
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
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
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
TestDialHTTPHeader
(t *testing.T)
remote/conn_test.go:218
Function
TestDialHTTPHeaderAbsent
(t *testing.T)
remote/conn_test.go:245
Function
TestDialTimeout
(t *testing.T)
remote/websocket_test.go:45
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
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
Function
TestEvaluateLargeResult
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
Function
TestEvaluateLargeResult
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
Function
TestEvaluateNil
(t *testing.T)
eval_test.go:245
Function
TestEvaluateNullAndUndefined
TestEvaluateNullAndUndefined makes sure that the expression null gives ErrJSNull and the expression undefined gives ErrJSUndefined, for a type that ca
eval_test.go:196
Function
TestEvaluateNumber
(t *testing.T)
eval_test.go:13
Function
TestEvaluateRemoteObject
(t *testing.T)
eval_test.go:124
Function
TestEvaluateString
(t *testing.T)
eval_test.go:51
Function
TestEvents
(t *testing.T)
chromedp_test.go:479
Function
TestEventsCancel
(t *testing.T)
chromedp_test.go:616
Function
TestExecAllocator
(t *testing.T)
allocate_test.go:33
Function
TestExecAllocatorCancelParent
(t *testing.T)
allocate_test.go:65
Function
TestExecAllocatorCombinedOutputPanic
(t *testing.T)
allocate_test.go:88
Function
TestExecAllocatorDebugf
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
Function
TestExecAllocatorDialer
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
Function
TestExecAllocatorKillBrowser
(t *testing.T)
allocate_test.go:120
Function
TestExecAllocatorMissingWebsocketAddr
(t *testing.T)
allocate_test.go:315
Function
TestExecAllocatorNeedsDialer
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
Function
TestExecAllocatorPipe
(t *testing.T)
pipe_test.go:289
Function
TestExecAllocatorPipeKillBrowser
TestExecAllocatorPipeKillBrowser checks that a killed Chrome closes the pipe.
pipe_test.go:325
Function
TestExecAllocatorPipeStartFailure
(t *testing.T)
pipe_test.go:357
Function
TestExecAllocatorWebSocket
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
Function
TestExecLocationsOtherSystemsHaveNoEdge
(t *testing.T)
execpath_test.go:37
Function
TestExecLocationsWindowsFallsBackToEdge
(t *testing.T)
execpath_test.go:9
Function
TestExitErrorAfterKill
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
← previous
next →
601–700 of 912, ranked by callers