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
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
TestEventsOnly
(t *testing.T)
listen_test.go:178
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
Function
TestExitErrorAfterKill
TestExitErrorAfterKill kills the browser process and checks that the next call returns the exit error of the process. See the issue 408.
remote/websocket_test.go:170
Function
TestExitErrorKeptBrowser
(t *testing.T)
remote/keepopen_test.go:187
Function
TestExposeFunc
(t *testing.T)
expose_test.go:21
Function
TestExposeFuncBadUTF8
TestExposeFuncBadUTF8 makes sure that the message of an error with bytes that are not valid UTF-8 reaches the page, with U+FFFD for each such byte.
expose_test.go:276
Function
TestExposeFuncErrors
(t *testing.T)
expose_test.go:216
Function
TestExposeFuncFailureCleanup
TestExposeFuncFailureCleanup makes sure that a failed ExposeFunc removes its binding and its script. The name "location" fails in the browser, because
expose_test.go:296
Function
TestExposeFuncIframe
(t *testing.T)
expose_test.go:158
Function
TestExposeFuncNames
TestExposeFuncNames makes sure that unusual names work, and that two names never share a binding. The name "a_reply" must not clash with the reply fun
expose_test.go:241
Function
TestExposeFuncSurvivesNavigation
(t *testing.T)
expose_test.go:116
Function
TestFileUpload
(t *testing.T)
query_test.go:1270
Function
TestFlagOrder
TestFlagOrder checks that the arguments of the command keep the order of the flags. Chrome needs --flag-switches-begin and --flag-switches-end around
allocate_test.go:560
Function
TestFlagOrderAfterVisibleWindow
(t *testing.T)
allocate_test.go:629
Function
TestFlagOrderNewFlags
(t *testing.T)
allocate_test.go:608
Function
TestFocusBlur
(t *testing.T)
query_test.go:381
Function
TestFrameFlood
TestFrameFlood checks the limit on the frames of one message.
remote/internal/websocket/conn_test.go:644
Function
TestFramesWithHandshake
TestFramesWithHandshake checks that a frame that the server sends in the same packet as the 101 response is not lost.
remote/internal/websocket/handshake_test.go:505
Function
TestFromNode
(t *testing.T)
query_test.go:1558
Function
TestFullScreenshot
(t *testing.T)
test/screenshot_test.go:180
Function
TestGracefulBrowserShutdown
(t *testing.T)
chromedp_test.go:1088
Function
TestGracefulCancelLogsNoError
TestGracefulCancelLogsNoError makes sure that the graceful close of a browser after a navigation does not log an error. The handler of the event DOM.d
chromedp_test.go:1594
Function
TestInnerHTML
(t *testing.T)
query_test.go:1335
Function
TestJSPathWrongValue
TestJSPathWrongValue checks that a JSPath expression that gives a value that is not a node returns an error at once, and does not retry until the time
query_test.go:1955
Function
TestJavascriptAttributeNull
TestJavascriptAttributeNull makes sure that a null attribute gives the zero value and no error, and that an attribute that does not exist gives ErrJSU
query_test.go:1981
Function
TestKeepOpen
(t *testing.T)
remote/keepopen_test.go:116
Function
TestKeepOpenOptions
(t *testing.T)
keepopen_test.go:8
Function
TestKeepOpenUserDataDir
(t *testing.T)
remote/keepopen_test.go:160
Function
TestKeptOpenWithoutBrowser
(t *testing.T)
keepopen_test.go:45
Function
TestKeyEvent
(t *testing.T)
input_test.go:186
Function
TestKeyEventModifier
TestKeyEventModifier checks that a letter with Ctrl, Alt or Meta fires the key events with the modifier, and that it types no character. The old code
input_test.go:251
Function
TestKeyEventNode
(t *testing.T)
input_test.go:359
Function
TestKillLeftoversSkipsKeepOpen
(t *testing.T)
keepopen_linux_test.go:33
Function
TestLargeEventCount
(t *testing.T)
chromedp_test.go:531
Function
TestLargeMessage
TestLargeMessage reads a message of several steps.
remote/internal/websocket/conn_test.go:349
Function
TestLargeOutboundMessages
(t *testing.T)
chromedp_test.go:983
Function
TestLargeOutboundMessages
(t *testing.T)
remote/websocket_test.go:261
Function
TestLargeQuery
(t *testing.T)
chromedp_test.go:564
Function
TestListen
(t *testing.T)
listen_test.go:51
Function
TestListenBrowser
(t *testing.T)
listen_test.go:131
Function
TestListenCancel
(t *testing.T)
listen_test.go:97
Function
TestListenInvalidContext
(t *testing.T)
listen_test.go:166
Function
TestLocation
(t *testing.T)
nav_test.go:262
Function
TestLogOptions
(t *testing.T)
chromedp_test.go:657
Function
TestMain
(m *testing.M)
chromedp_test.go:108
Function
TestMain
(m *testing.M)
remote/main_test.go:9
Function
TestMain
(m *testing.M)
test/main_test.go:9
Function
TestMarkdownLinksResolve
(t *testing.T)
docs/docs_test.go:30
Function
TestMarshalWithDefaultOptions
(t *testing.T)
browser_test.go:63
Function
TestMaskBytes
TestMaskBytes checks the masking of RFC 6455 section 5.7. The unmasked text frame "Hello" has the key 37 fa 21 3d.
remote/internal/websocket/frame_test.go:25
Function
TestMaskKeysDiffer
TestMaskKeysDiffer checks that each frame has its own mask key.
remote/internal/websocket/conn_test.go:441
Function
TestMatchedStyle
(t *testing.T)
query_test.go:1237
Function
TestMessageSizeLimit
TestMessageSizeLimit checks that the reader rejects a large message with the code 1009 before it reads or allocates the payload.
remote/internal/websocket/conn_test.go:306
Function
TestModifyCmdFunc
(t *testing.T)
allocate_test.go:450
Function
TestMouseClickNode
(t *testing.T)
input_test.go:73
Function
TestMouseClickOffscreenNode
(t *testing.T)
input_test.go:127
Function
TestMouseClickXY
(t *testing.T)
input_test.go:25
Function
TestNavigate
(t *testing.T)
nav_test.go:19
Function
TestNavigateBack
(t *testing.T)
nav_test.go:163
Function
TestNavigateCancelled
(t *testing.T)
nav_test.go:446
Function
TestNavigateContextTimeout
(t *testing.T)
nav_test.go:326
Function
TestNavigateForward
(t *testing.T)
nav_test.go:186
Function
TestNavigateLoadError
TestNavigateLoadError checks the error of a page that does not load. A program must find it with errors.Is and errors.As. The text of the error is the
nav_test.go:90
Function
TestNavigateToHistoryEntry
(t *testing.T)
nav_test.go:136
Function
TestNavigateWhileLoading
(t *testing.T)
nav_test.go:352
Function
TestNavigateWithoutWaitingForLoad
(t *testing.T)
nav_test.go:427
Function
TestNavigationEntries
(t *testing.T)
nav_test.go:41
Function
TestNewContextVisibleWindow
(t *testing.T)
visible_test.go:113
Function
TestNoDataFrameAfterClose
TestNoDataFrameAfterClose checks that a Write that runs while Close runs never puts a data frame on the wire after the close frame.
remote/internal/websocket/handshake_test.go:604
Function
TestNoExitErrorAfterCancel
TestNoExitErrorAfterCancel makes sure that a program that stops the browser itself gets no exit error. The process ends with a signal then, too.
allocate_test.go:219
Function
TestNoInheritEnv
TestNoInheritEnv starts a fake browser that writes its environment to a file. The browser has only the variables that Env and ModifyCmdFunc give when
allocate_test.go:644
Function
TestNoInheritEnvEmpty
(t *testing.T)
allocate_test.go:720
Function
TestNoRetryForInvalidSelector
(t *testing.T)
query_test.go:262
Function
TestNodeIDs
(t *testing.T)
query_test.go:348
Function
TestNodeOp
test: - insertBefore - removeChild - appendChild - replaceChild - prepend - append - insertAdjacentElement
util_test.go:124
Function
TestNodeStateEvents
(t *testing.T)
target_test.go:78
Function
TestNodes
(t *testing.T)
query_test.go:315
← previous
next →
801–900 of 1,064, ranked by callers