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
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
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
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
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:55
Function
TestMatchedStyle
(t *testing.T)
query_test.go:1237
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
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:48
Function
TestNodes
(t *testing.T)
query_test.go:315
Function
TestOuterHTML
(t *testing.T)
query_test.go:1366
Function
TestPDFBackground
TestPDFTemplate tests that the resource pack is loaded in headless-shell. regression test for https://github.com/chromedp/chromedp/issues/1551
chromedp_test.go:1534
Function
TestPDFOptions
TestPDFOptions checks that each option sets its fields of the command.
pdf_test.go:175
Function
TestPDFTemplate
When it is loaded correctly, the header and footer templates that use these values work as expected: - title - url - pageNumber - totalPages This is
test/pdf_test.go:25
Function
TestPipeConnClose
(t *testing.T)
pipe_test.go:189
Function
TestPipeConnRead
(t *testing.T)
pipe_test.go:31
Function
TestPipeConnReadEOF
(t *testing.T)
pipe_test.go:94
Function
TestPipeConnWrite
(t *testing.T)
pipe_test.go:122
Function
TestPipeConnWriteConcurrent
TestPipeConnWriteConcurrent checks that the messages of several writers do not mix. A large message needs more than one write to a real pipe.
pipe_test.go:145
Function
TestPoll
(t *testing.T)
poll_test.go:11
Function
TestPollFrame
(t *testing.T)
poll_test.go:180
Function
TestPollNull
TestPollNull makes sure that a predicate that returns null is not truthy, so Poll times out and does not return ErrJSNull.
poll_test.go:246
Function
TestPollRemoteObject
(t *testing.T)
poll_test.go:201
Function
TestPollTimeout
(t *testing.T)
poll_test.go:220
Function
TestPrematureCancel
(t *testing.T)
chromedp_test.go:324
Function
TestPrematureCancelAllocator
(t *testing.T)
chromedp_test.go:355
Function
TestPrematureCancelTab
(t *testing.T)
chromedp_test.go:337
Function
TestPrintToPDF
(t *testing.T)
pdf_test.go:65
Function
TestPrintToPDFHeaderAndFooter
TestPrintToPDFHeaderAndFooter checks that the options of chromedp.PrintToPDF reach the browser. The header and the footer templates turn the header an
test/pdf_test.go:101
Function
TestPrintToPDFPageCount
(t *testing.T)
pdf_test.go:103
Function
TestPrintToPDFPageRangeError
(t *testing.T)
pdf_test.go:164
Function
TestPrintToPDFStreamClosedAfterError
TestPrintToPDFStreamClosedAfterError makes sure that readStream closes the stream when the read fails, here because the context of the read ended.
pdf_test.go:226
Function
TestPrintToPDFStreamIsTheSameFile
(t *testing.T)
pdf_test.go:142
Function
TestProseIsSimpleEnglish
(t *testing.T)
docs/docs_test.go:138
Function
TestQueryIframe
(t *testing.T)
nav_test.go:295
Function
TestReload
(t *testing.T)
nav_test.go:220
Function
TestRemoveAttribute
(t *testing.T)
query_test.go:982
Function
TestReset
(t *testing.T)
query_test.go:585
Function
TestRetryInterval
(t *testing.T)
query_test.go:197
Function
TestRetryRemove
TestRetryRemove checks that the removal of a user data directory tries again when it fails. Child processes of Chrome can write in the directory after
allocate_test.go:238
Function
TestRootHoldsFiveDocuments
(t *testing.T)
docs/docs_test.go:72
Function
TestRunResponse
(t *testing.T)
chromedp_test.go:1221
Function
TestRunResponse_noResponse
(t *testing.T)
chromedp_test.go:1441
Function
TestSVGFullXPath
(t *testing.T)
query_test.go:1426
Function
TestScreenshot
(t *testing.T)
test/screenshot_test.go:18
Function
TestScreenshotHighDPI
(t *testing.T)
test/screenshot_test.go:129
← previous
next →
701–800 of 912, ranked by callers