MCPcopy Create free account

hub / github.com/chromedp/chromedp / functions

Functions1,099 in github.com/chromedp/chromedp

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
FunctionTestEndWithErr
(t *testing.T)
event_test.go:263
FunctionTestEntryPointsHideAnAddressThatDoesNotParse
TestEntryPointsHideAnAddressThatDoesNotParse checks that the error of an address that url.Parse refuses keeps its reason and shows no part of the addr
remote/address_test.go:424
FunctionTestEntryPointsHideAnAddressThatFailsToDial
TestEntryPointsHideAnAddressThatFailsToDial checks that no error of a dial that fails, and no error that it wraps, shows the user, the password or the
remote/address_test.go:464
FunctionTestEnv
(t *testing.T)
allocate_test.go:432
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
FunctionTestEventsOnly
(t *testing.T)
listen_test.go:178
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
FunctionTestExecAllocatorFailedStartIsFinal
TestExecAllocatorFailedStartIsFinal checks that a context whose browser started and then failed returns the same error on the next action, and does no
allocate_test.go:343
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
FunctionTestExitErrorAfterKill
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
FunctionTestExitErrorKeptBrowser
(t *testing.T)
remote/keepopen_test.go:187
FunctionTestExposeFunc
(t *testing.T)
expose_test.go:21
FunctionTestExposeFuncBadUTF8
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
FunctionTestExposeFuncErrors
(t *testing.T)
expose_test.go:216
FunctionTestExposeFuncFailureCleanup
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
FunctionTestExposeFuncIframe
(t *testing.T)
expose_test.go:158
FunctionTestExposeFuncNames
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
FunctionTestExposeFuncSurvivesNavigation
(t *testing.T)
expose_test.go:116
FunctionTestFileUpload
(t *testing.T)
query_test.go:1270
FunctionTestFlagOrder
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:587
FunctionTestFlagOrderAfterVisibleWindow
(t *testing.T)
allocate_test.go:656
FunctionTestFlagOrderNewFlags
(t *testing.T)
allocate_test.go:635
FunctionTestFocusBlur
(t *testing.T)
query_test.go:381
FunctionTestFrameFlood
TestFrameFlood checks the limit on the frames of one message.
remote/internal/websocket/conn_test.go:644
FunctionTestFramesWithHandshake
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
FunctionTestFromNode
(t *testing.T)
query_test.go:1558
FunctionTestFullScreenshot
(t *testing.T)
test/screenshot_test.go:180
FunctionTestGracefulBrowserShutdown
(t *testing.T)
chromedp_test.go:1088
FunctionTestGracefulCancelLogsNoError
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
FunctionTestInnerHTML
(t *testing.T)
query_test.go:1335
FunctionTestJSPathWrongValue
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
FunctionTestJavascriptAttributeNull
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
FunctionTestKeepOpen
(t *testing.T)
remote/keepopen_test.go:116
FunctionTestKeepOpenOptions
(t *testing.T)
keepopen_test.go:8
FunctionTestKeepOpenUserDataDir
(t *testing.T)
remote/keepopen_test.go:160
FunctionTestKeptOpenWithoutBrowser
(t *testing.T)
keepopen_test.go:45
FunctionTestKeyEvent
(t *testing.T)
input_test.go:186
FunctionTestKeyEventModifier
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
FunctionTestKeyEventNode
(t *testing.T)
input_test.go:359
FunctionTestKillLeftoversSkipsKeepOpen
(t *testing.T)
keepopen_linux_test.go:33
FunctionTestLargeEventCount
(t *testing.T)
chromedp_test.go:531
FunctionTestLargeMessage
TestLargeMessage reads a message of several steps.
remote/internal/websocket/conn_test.go:349
FunctionTestLargeOutboundMessages
(t *testing.T)
chromedp_test.go:983
FunctionTestLargeOutboundMessages
(t *testing.T)
remote/websocket_test.go:261
FunctionTestLargeQuery
(t *testing.T)
chromedp_test.go:564
FunctionTestListen
(t *testing.T)
listen_test.go:51
FunctionTestListenBrowser
(t *testing.T)
listen_test.go:131
FunctionTestListenCancel
(t *testing.T)
listen_test.go:97
FunctionTestListenInvalidContext
(t *testing.T)
listen_test.go:166
FunctionTestLocation
(t *testing.T)
nav_test.go:262
FunctionTestLogOptions
(t *testing.T)
chromedp_test.go:657
FunctionTestMain
(m *testing.M)
chromedp_test.go:108
FunctionTestMain
(m *testing.M)
remote/main_test.go:9
FunctionTestMain
(m *testing.M)
test/main_test.go:9
FunctionTestMarkdownLinksResolve
(t *testing.T)
docs/docs_test.go:30
← previousnext →801–900 of 1,099, ranked by callers