repo
stringlengths
5
67
path
stringlengths
4
218
func_name
stringlengths
0
151
original_string
stringlengths
52
373k
language
stringclasses
6 values
code
stringlengths
52
373k
code_tokens
listlengths
10
512
docstring
stringlengths
3
47.2k
docstring_tokens
listlengths
3
234
sha
stringlengths
40
40
url
stringlengths
85
339
partition
stringclasses
3 values
chromedp/cdproto
overlay/overlay.go
WithSelector
func (p HighlightNodeParams) WithSelector(selector string) *HighlightNodeParams { p.Selector = selector return &p }
go
func (p HighlightNodeParams) WithSelector(selector string) *HighlightNodeParams { p.Selector = selector return &p }
[ "func", "(", "p", "HighlightNodeParams", ")", "WithSelector", "(", "selector", "string", ")", "*", "HighlightNodeParams", "{", "p", ".", "Selector", "=", "selector", "\n", "return", "&", "p", "\n", "}" ]
// WithSelector selectors to highlight relevant nodes.
[ "WithSelector", "selectors", "to", "highlight", "relevant", "nodes", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L183-L186
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *HighlightNodeParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandHighlightNode, p, nil) }
go
func (p *HighlightNodeParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandHighlightNode, p, nil) }
[ "func", "(", "p", "*", "HighlightNodeParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandHighlightNode", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.highlightNode against the provided context.
[ "Do", "executes", "Overlay", ".", "highlightNode", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L189-L191
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *HighlightQuadParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandHighlightQuad, p, nil) }
go
func (p *HighlightQuadParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandHighlightQuad, p, nil) }
[ "func", "(", "p", "*", "HighlightQuadParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandHighlightQuad", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.highlightQuad against the provided context.
[ "Do", "executes", "Overlay", ".", "highlightQuad", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L227-L229
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *HighlightRectParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandHighlightRect, p, nil) }
go
func (p *HighlightRectParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandHighlightRect, p, nil) }
[ "func", "(", "p", "*", "HighlightRectParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandHighlightRect", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.highlightRect against the provided context.
[ "Do", "executes", "Overlay", ".", "highlightRect", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L274-L276
test
chromedp/cdproto
overlay/overlay.go
WithHighlightConfig
func (p SetInspectModeParams) WithHighlightConfig(highlightConfig *HighlightConfig) *SetInspectModeParams { p.HighlightConfig = highlightConfig return &p }
go
func (p SetInspectModeParams) WithHighlightConfig(highlightConfig *HighlightConfig) *SetInspectModeParams { p.HighlightConfig = highlightConfig return &p }
[ "func", "(", "p", "SetInspectModeParams", ")", "WithHighlightConfig", "(", "highlightConfig", "*", "HighlightConfig", ")", "*", "SetInspectModeParams", "{", "p", ".", "HighlightConfig", "=", "highlightConfig", "\n", "return", "&", "p", "\n", "}" ]
// WithHighlightConfig a descriptor for the highlight appearance of // hovered-over nodes. May be omitted if enabled == false.
[ "WithHighlightConfig", "a", "descriptor", "for", "the", "highlight", "appearance", "of", "hovered", "-", "over", "nodes", ".", "May", "be", "omitted", "if", "enabled", "==", "false", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L302-L305
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetInspectModeParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetInspectMode, p, nil) }
go
func (p *SetInspectModeParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetInspectMode, p, nil) }
[ "func", "(", "p", "*", "SetInspectModeParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetInspectMode", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setInspectMode against the provided context.
[ "Do", "executes", "Overlay", ".", "setInspectMode", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L308-L310
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetShowAdHighlightsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowAdHighlights, p, nil) }
go
func (p *SetShowAdHighlightsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowAdHighlights, p, nil) }
[ "func", "(", "p", "*", "SetShowAdHighlightsParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetShowAdHighlights", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setShowAdHighlights against the provided context.
[ "Do", "executes", "Overlay", ".", "setShowAdHighlights", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L332-L334
test
chromedp/cdproto
overlay/overlay.go
WithMessage
func (p SetPausedInDebuggerMessageParams) WithMessage(message string) *SetPausedInDebuggerMessageParams { p.Message = message return &p }
go
func (p SetPausedInDebuggerMessageParams) WithMessage(message string) *SetPausedInDebuggerMessageParams { p.Message = message return &p }
[ "func", "(", "p", "SetPausedInDebuggerMessageParams", ")", "WithMessage", "(", "message", "string", ")", "*", "SetPausedInDebuggerMessageParams", "{", "p", ".", "Message", "=", "message", "\n", "return", "&", "p", "\n", "}" ]
// WithMessage the message to display, also triggers resume and step over // controls.
[ "WithMessage", "the", "message", "to", "display", "also", "triggers", "resume", "and", "step", "over", "controls", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L352-L355
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetPausedInDebuggerMessageParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetPausedInDebuggerMessage, p, nil) }
go
func (p *SetPausedInDebuggerMessageParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetPausedInDebuggerMessage, p, nil) }
[ "func", "(", "p", "*", "SetPausedInDebuggerMessageParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetPausedInDebuggerMessage", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setPausedInDebuggerMessage against the provided context.
[ "Do", "executes", "Overlay", ".", "setPausedInDebuggerMessage", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L358-L360
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetShowDebugBordersParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowDebugBorders, p, nil) }
go
func (p *SetShowDebugBordersParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowDebugBorders, p, nil) }
[ "func", "(", "p", "*", "SetShowDebugBordersParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetShowDebugBorders", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setShowDebugBorders against the provided context.
[ "Do", "executes", "Overlay", ".", "setShowDebugBorders", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L381-L383
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetShowFPSCounterParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowFPSCounter, p, nil) }
go
func (p *SetShowFPSCounterParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowFPSCounter, p, nil) }
[ "func", "(", "p", "*", "SetShowFPSCounterParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetShowFPSCounter", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setShowFPSCounter against the provided context.
[ "Do", "executes", "Overlay", ".", "setShowFPSCounter", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L403-L405
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetShowPaintRectsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowPaintRects, p, nil) }
go
func (p *SetShowPaintRectsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowPaintRects, p, nil) }
[ "func", "(", "p", "*", "SetShowPaintRectsParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetShowPaintRects", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setShowPaintRects against the provided context.
[ "Do", "executes", "Overlay", ".", "setShowPaintRects", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L425-L427
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetShowScrollBottleneckRectsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowScrollBottleneckRects, p, nil) }
go
func (p *SetShowScrollBottleneckRectsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowScrollBottleneckRects, p, nil) }
[ "func", "(", "p", "*", "SetShowScrollBottleneckRectsParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetShowScrollBottleneckRects", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setShowScrollBottleneckRects against the provided context.
[ "Do", "executes", "Overlay", ".", "setShowScrollBottleneckRects", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L449-L451
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetShowHitTestBordersParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowHitTestBorders, p, nil) }
go
func (p *SetShowHitTestBordersParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowHitTestBorders, p, nil) }
[ "func", "(", "p", "*", "SetShowHitTestBordersParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetShowHitTestBorders", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setShowHitTestBorders against the provided context.
[ "Do", "executes", "Overlay", ".", "setShowHitTestBorders", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L473-L475
test
chromedp/cdproto
overlay/overlay.go
Do
func (p *SetShowViewportSizeOnResizeParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowViewportSizeOnResize, p, nil) }
go
func (p *SetShowViewportSizeOnResizeParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetShowViewportSizeOnResize, p, nil) }
[ "func", "(", "p", "*", "SetShowViewportSizeOnResizeParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetShowViewportSizeOnResize", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Overlay.setShowViewportSizeOnResize against the provided context.
[ "Do", "executes", "Overlay", ".", "setShowViewportSizeOnResize", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L496-L498
test
chromedp/cdproto
network/network.go
Do
func (p *ClearBrowserCacheParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandClearBrowserCache, nil, nil) }
go
func (p *ClearBrowserCacheParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandClearBrowserCache, nil, nil) }
[ "func", "(", "p", "*", "ClearBrowserCacheParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandClearBrowserCache", ",", "nil", ",", "nil", ")", "\n", "}" ]
// Do executes Network.clearBrowserCache against the provided context.
[ "Do", "executes", "Network", ".", "clearBrowserCache", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L33-L35
test
chromedp/cdproto
network/network.go
Do
func (p *ClearBrowserCookiesParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandClearBrowserCookies, nil, nil) }
go
func (p *ClearBrowserCookiesParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandClearBrowserCookies, nil, nil) }
[ "func", "(", "p", "*", "ClearBrowserCookiesParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandClearBrowserCookies", ",", "nil", ",", "nil", ")", "\n", "}" ]
// Do executes Network.clearBrowserCookies against the provided context.
[ "Do", "executes", "Network", ".", "clearBrowserCookies", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L48-L50
test
chromedp/cdproto
network/network.go
WithErrorReason
func (p ContinueInterceptedRequestParams) WithErrorReason(errorReason ErrorReason) *ContinueInterceptedRequestParams { p.ErrorReason = errorReason return &p }
go
func (p ContinueInterceptedRequestParams) WithErrorReason(errorReason ErrorReason) *ContinueInterceptedRequestParams { p.ErrorReason = errorReason return &p }
[ "func", "(", "p", "ContinueInterceptedRequestParams", ")", "WithErrorReason", "(", "errorReason", "ErrorReason", ")", "*", "ContinueInterceptedRequestParams", "{", "p", ".", "ErrorReason", "=", "errorReason", "\n", "return", "&", "p", "\n", "}" ]
// WithErrorReason if set this causes the request to fail with the given // reason. Passing Aborted for requests marked with isNavigationRequest also // cancels the navigation. Must not be set in response to an authChallenge.
[ "WithErrorReason", "if", "set", "this", "causes", "the", "request", "to", "fail", "with", "the", "given", "reason", ".", "Passing", "Aborted", "for", "requests", "marked", "with", "isNavigationRequest", "also", "cancels", "the", "navigation", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L87-L90
test
chromedp/cdproto
network/network.go
WithRawResponse
func (p ContinueInterceptedRequestParams) WithRawResponse(rawResponse string) *ContinueInterceptedRequestParams { p.RawResponse = rawResponse return &p }
go
func (p ContinueInterceptedRequestParams) WithRawResponse(rawResponse string) *ContinueInterceptedRequestParams { p.RawResponse = rawResponse return &p }
[ "func", "(", "p", "ContinueInterceptedRequestParams", ")", "WithRawResponse", "(", "rawResponse", "string", ")", "*", "ContinueInterceptedRequestParams", "{", "p", ".", "RawResponse", "=", "rawResponse", "\n", "return", "&", "p", "\n", "}" ]
// WithRawResponse if set the requests completes using with the provided // base64 encoded raw response, including HTTP status line and headers etc... // Must not be set in response to an authChallenge.
[ "WithRawResponse", "if", "set", "the", "requests", "completes", "using", "with", "the", "provided", "base64", "encoded", "raw", "response", "including", "HTTP", "status", "line", "and", "headers", "etc", "...", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L95-L98
test
chromedp/cdproto
network/network.go
WithURL
func (p ContinueInterceptedRequestParams) WithURL(url string) *ContinueInterceptedRequestParams { p.URL = url return &p }
go
func (p ContinueInterceptedRequestParams) WithURL(url string) *ContinueInterceptedRequestParams { p.URL = url return &p }
[ "func", "(", "p", "ContinueInterceptedRequestParams", ")", "WithURL", "(", "url", "string", ")", "*", "ContinueInterceptedRequestParams", "{", "p", ".", "URL", "=", "url", "\n", "return", "&", "p", "\n", "}" ]
// WithURL if set the request url will be modified in a way that's not // observable by page. Must not be set in response to an authChallenge.
[ "WithURL", "if", "set", "the", "request", "url", "will", "be", "modified", "in", "a", "way", "that", "s", "not", "observable", "by", "page", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L102-L105
test
chromedp/cdproto
network/network.go
WithMethod
func (p ContinueInterceptedRequestParams) WithMethod(method string) *ContinueInterceptedRequestParams { p.Method = method return &p }
go
func (p ContinueInterceptedRequestParams) WithMethod(method string) *ContinueInterceptedRequestParams { p.Method = method return &p }
[ "func", "(", "p", "ContinueInterceptedRequestParams", ")", "WithMethod", "(", "method", "string", ")", "*", "ContinueInterceptedRequestParams", "{", "p", ".", "Method", "=", "method", "\n", "return", "&", "p", "\n", "}" ]
// WithMethod if set this allows the request method to be overridden. Must // not be set in response to an authChallenge.
[ "WithMethod", "if", "set", "this", "allows", "the", "request", "method", "to", "be", "overridden", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L109-L112
test
chromedp/cdproto
network/network.go
WithPostData
func (p ContinueInterceptedRequestParams) WithPostData(postData string) *ContinueInterceptedRequestParams { p.PostData = postData return &p }
go
func (p ContinueInterceptedRequestParams) WithPostData(postData string) *ContinueInterceptedRequestParams { p.PostData = postData return &p }
[ "func", "(", "p", "ContinueInterceptedRequestParams", ")", "WithPostData", "(", "postData", "string", ")", "*", "ContinueInterceptedRequestParams", "{", "p", ".", "PostData", "=", "postData", "\n", "return", "&", "p", "\n", "}" ]
// WithPostData if set this allows postData to be set. Must not be set in // response to an authChallenge.
[ "WithPostData", "if", "set", "this", "allows", "postData", "to", "be", "set", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L116-L119
test
chromedp/cdproto
network/network.go
WithHeaders
func (p ContinueInterceptedRequestParams) WithHeaders(headers Headers) *ContinueInterceptedRequestParams { p.Headers = headers return &p }
go
func (p ContinueInterceptedRequestParams) WithHeaders(headers Headers) *ContinueInterceptedRequestParams { p.Headers = headers return &p }
[ "func", "(", "p", "ContinueInterceptedRequestParams", ")", "WithHeaders", "(", "headers", "Headers", ")", "*", "ContinueInterceptedRequestParams", "{", "p", ".", "Headers", "=", "headers", "\n", "return", "&", "p", "\n", "}" ]
// WithHeaders if set this allows the request headers to be changed. Must not // be set in response to an authChallenge.
[ "WithHeaders", "if", "set", "this", "allows", "the", "request", "headers", "to", "be", "changed", ".", "Must", "not", "be", "set", "in", "response", "to", "an", "authChallenge", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L123-L126
test
chromedp/cdproto
network/network.go
WithAuthChallengeResponse
func (p ContinueInterceptedRequestParams) WithAuthChallengeResponse(authChallengeResponse *AuthChallengeResponse) *ContinueInterceptedRequestParams { p.AuthChallengeResponse = authChallengeResponse return &p }
go
func (p ContinueInterceptedRequestParams) WithAuthChallengeResponse(authChallengeResponse *AuthChallengeResponse) *ContinueInterceptedRequestParams { p.AuthChallengeResponse = authChallengeResponse return &p }
[ "func", "(", "p", "ContinueInterceptedRequestParams", ")", "WithAuthChallengeResponse", "(", "authChallengeResponse", "*", "AuthChallengeResponse", ")", "*", "ContinueInterceptedRequestParams", "{", "p", ".", "AuthChallengeResponse", "=", "authChallengeResponse", "\n", "return", "&", "p", "\n", "}" ]
// WithAuthChallengeResponse response to a requestIntercepted with an // authChallenge. Must not be set otherwise.
[ "WithAuthChallengeResponse", "response", "to", "a", "requestIntercepted", "with", "an", "authChallenge", ".", "Must", "not", "be", "set", "otherwise", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L130-L133
test
chromedp/cdproto
network/network.go
Do
func (p *ContinueInterceptedRequestParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandContinueInterceptedRequest, p, nil) }
go
func (p *ContinueInterceptedRequestParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandContinueInterceptedRequest, p, nil) }
[ "func", "(", "p", "*", "ContinueInterceptedRequestParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandContinueInterceptedRequest", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.continueInterceptedRequest against the provided context.
[ "Do", "executes", "Network", ".", "continueInterceptedRequest", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L136-L138
test
chromedp/cdproto
network/network.go
WithURL
func (p DeleteCookiesParams) WithURL(url string) *DeleteCookiesParams { p.URL = url return &p }
go
func (p DeleteCookiesParams) WithURL(url string) *DeleteCookiesParams { p.URL = url return &p }
[ "func", "(", "p", "DeleteCookiesParams", ")", "WithURL", "(", "url", "string", ")", "*", "DeleteCookiesParams", "{", "p", ".", "URL", "=", "url", "\n", "return", "&", "p", "\n", "}" ]
// WithURL if specified, deletes all the cookies with the given name where // domain and path match provided URL.
[ "WithURL", "if", "specified", "deletes", "all", "the", "cookies", "with", "the", "given", "name", "where", "domain", "and", "path", "match", "provided", "URL", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L164-L167
test
chromedp/cdproto
network/network.go
WithDomain
func (p DeleteCookiesParams) WithDomain(domain string) *DeleteCookiesParams { p.Domain = domain return &p }
go
func (p DeleteCookiesParams) WithDomain(domain string) *DeleteCookiesParams { p.Domain = domain return &p }
[ "func", "(", "p", "DeleteCookiesParams", ")", "WithDomain", "(", "domain", "string", ")", "*", "DeleteCookiesParams", "{", "p", ".", "Domain", "=", "domain", "\n", "return", "&", "p", "\n", "}" ]
// WithDomain if specified, deletes only cookies with the exact domain.
[ "WithDomain", "if", "specified", "deletes", "only", "cookies", "with", "the", "exact", "domain", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L170-L173
test
chromedp/cdproto
network/network.go
WithPath
func (p DeleteCookiesParams) WithPath(path string) *DeleteCookiesParams { p.Path = path return &p }
go
func (p DeleteCookiesParams) WithPath(path string) *DeleteCookiesParams { p.Path = path return &p }
[ "func", "(", "p", "DeleteCookiesParams", ")", "WithPath", "(", "path", "string", ")", "*", "DeleteCookiesParams", "{", "p", ".", "Path", "=", "path", "\n", "return", "&", "p", "\n", "}" ]
// WithPath if specified, deletes only cookies with the exact path.
[ "WithPath", "if", "specified", "deletes", "only", "cookies", "with", "the", "exact", "path", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L176-L179
test
chromedp/cdproto
network/network.go
Do
func (p *DeleteCookiesParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandDeleteCookies, p, nil) }
go
func (p *DeleteCookiesParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandDeleteCookies, p, nil) }
[ "func", "(", "p", "*", "DeleteCookiesParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandDeleteCookies", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.deleteCookies against the provided context.
[ "Do", "executes", "Network", ".", "deleteCookies", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L182-L184
test
chromedp/cdproto
network/network.go
WithConnectionType
func (p EmulateNetworkConditionsParams) WithConnectionType(connectionType ConnectionType) *EmulateNetworkConditionsParams { p.ConnectionType = connectionType return &p }
go
func (p EmulateNetworkConditionsParams) WithConnectionType(connectionType ConnectionType) *EmulateNetworkConditionsParams { p.ConnectionType = connectionType return &p }
[ "func", "(", "p", "EmulateNetworkConditionsParams", ")", "WithConnectionType", "(", "connectionType", "ConnectionType", ")", "*", "EmulateNetworkConditionsParams", "{", "p", ".", "ConnectionType", "=", "connectionType", "\n", "return", "&", "p", "\n", "}" ]
// WithConnectionType connection type if known.
[ "WithConnectionType", "connection", "type", "if", "known", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L231-L234
test
chromedp/cdproto
network/network.go
Do
func (p *EmulateNetworkConditionsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandEmulateNetworkConditions, p, nil) }
go
func (p *EmulateNetworkConditionsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandEmulateNetworkConditions, p, nil) }
[ "func", "(", "p", "*", "EmulateNetworkConditionsParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandEmulateNetworkConditions", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.emulateNetworkConditions against the provided context.
[ "Do", "executes", "Network", ".", "emulateNetworkConditions", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L237-L239
test
chromedp/cdproto
network/network.go
Do
func (p *EnableParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandEnable, p, nil) }
go
func (p *EnableParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandEnable, p, nil) }
[ "func", "(", "p", "*", "EnableParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandEnable", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.enable against the provided context.
[ "Do", "executes", "Network", ".", "enable", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L281-L283
test
chromedp/cdproto
network/network.go
WithUrls
func (p GetCookiesParams) WithUrls(urls []string) *GetCookiesParams { p.Urls = urls return &p }
go
func (p GetCookiesParams) WithUrls(urls []string) *GetCookiesParams { p.Urls = urls return &p }
[ "func", "(", "p", "GetCookiesParams", ")", "WithUrls", "(", "urls", "[", "]", "string", ")", "*", "GetCookiesParams", "{", "p", ".", "Urls", "=", "urls", "\n", "return", "&", "p", "\n", "}" ]
// WithUrls the list of URLs for which applicable cookies will be fetched.
[ "WithUrls", "the", "list", "of", "URLs", "for", "which", "applicable", "cookies", "will", "be", "fetched", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L373-L376
test
chromedp/cdproto
network/network.go
Do
func (p *ReplayXHRParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandReplayXHR, p, nil) }
go
func (p *ReplayXHRParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandReplayXHR, p, nil) }
[ "func", "(", "p", "*", "ReplayXHRParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandReplayXHR", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.replayXHR against the provided context.
[ "Do", "executes", "Network", ".", "replayXHR", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L604-L606
test
chromedp/cdproto
network/network.go
Do
func (p *SetBlockedURLSParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetBlockedURLS, p, nil) }
go
func (p *SetBlockedURLSParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetBlockedURLS, p, nil) }
[ "func", "(", "p", "*", "SetBlockedURLSParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetBlockedURLS", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.setBlockedURLs against the provided context.
[ "Do", "executes", "Network", ".", "setBlockedURLs", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L680-L682
test
chromedp/cdproto
network/network.go
Do
func (p *SetBypassServiceWorkerParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetBypassServiceWorker, p, nil) }
go
func (p *SetBypassServiceWorkerParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetBypassServiceWorker, p, nil) }
[ "func", "(", "p", "*", "SetBypassServiceWorkerParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetBypassServiceWorker", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.setBypassServiceWorker against the provided context.
[ "Do", "executes", "Network", ".", "setBypassServiceWorker", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L704-L706
test
chromedp/cdproto
network/network.go
Do
func (p *SetCacheDisabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetCacheDisabled, p, nil) }
go
func (p *SetCacheDisabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetCacheDisabled, p, nil) }
[ "func", "(", "p", "*", "SetCacheDisabledParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetCacheDisabled", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.setCacheDisabled against the provided context.
[ "Do", "executes", "Network", ".", "setCacheDisabled", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L728-L730
test
chromedp/cdproto
network/network.go
WithURL
func (p SetCookieParams) WithURL(url string) *SetCookieParams { p.URL = url return &p }
go
func (p SetCookieParams) WithURL(url string) *SetCookieParams { p.URL = url return &p }
[ "func", "(", "p", "SetCookieParams", ")", "WithURL", "(", "url", "string", ")", "*", "SetCookieParams", "{", "p", ".", "URL", "=", "url", "\n", "return", "&", "p", "\n", "}" ]
// WithURL the request-URI to associate with the setting of the cookie. This // value can affect the default domain and path values of the created cookie.
[ "WithURL", "the", "request", "-", "URI", "to", "associate", "with", "the", "setting", "of", "the", "cookie", ".", "This", "value", "can", "affect", "the", "default", "domain", "and", "path", "values", "of", "the", "created", "cookie", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L763-L766
test
chromedp/cdproto
network/network.go
WithDomain
func (p SetCookieParams) WithDomain(domain string) *SetCookieParams { p.Domain = domain return &p }
go
func (p SetCookieParams) WithDomain(domain string) *SetCookieParams { p.Domain = domain return &p }
[ "func", "(", "p", "SetCookieParams", ")", "WithDomain", "(", "domain", "string", ")", "*", "SetCookieParams", "{", "p", ".", "Domain", "=", "domain", "\n", "return", "&", "p", "\n", "}" ]
// WithDomain cookie domain.
[ "WithDomain", "cookie", "domain", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L769-L772
test
chromedp/cdproto
network/network.go
WithPath
func (p SetCookieParams) WithPath(path string) *SetCookieParams { p.Path = path return &p }
go
func (p SetCookieParams) WithPath(path string) *SetCookieParams { p.Path = path return &p }
[ "func", "(", "p", "SetCookieParams", ")", "WithPath", "(", "path", "string", ")", "*", "SetCookieParams", "{", "p", ".", "Path", "=", "path", "\n", "return", "&", "p", "\n", "}" ]
// WithPath cookie path.
[ "WithPath", "cookie", "path", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L775-L778
test
chromedp/cdproto
network/network.go
WithSecure
func (p SetCookieParams) WithSecure(secure bool) *SetCookieParams { p.Secure = secure return &p }
go
func (p SetCookieParams) WithSecure(secure bool) *SetCookieParams { p.Secure = secure return &p }
[ "func", "(", "p", "SetCookieParams", ")", "WithSecure", "(", "secure", "bool", ")", "*", "SetCookieParams", "{", "p", ".", "Secure", "=", "secure", "\n", "return", "&", "p", "\n", "}" ]
// WithSecure true if cookie is secure.
[ "WithSecure", "true", "if", "cookie", "is", "secure", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L781-L784
test
chromedp/cdproto
network/network.go
WithHTTPOnly
func (p SetCookieParams) WithHTTPOnly(httpOnly bool) *SetCookieParams { p.HTTPOnly = httpOnly return &p }
go
func (p SetCookieParams) WithHTTPOnly(httpOnly bool) *SetCookieParams { p.HTTPOnly = httpOnly return &p }
[ "func", "(", "p", "SetCookieParams", ")", "WithHTTPOnly", "(", "httpOnly", "bool", ")", "*", "SetCookieParams", "{", "p", ".", "HTTPOnly", "=", "httpOnly", "\n", "return", "&", "p", "\n", "}" ]
// WithHTTPOnly true if cookie is http-only.
[ "WithHTTPOnly", "true", "if", "cookie", "is", "http", "-", "only", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L787-L790
test
chromedp/cdproto
network/network.go
WithSameSite
func (p SetCookieParams) WithSameSite(sameSite CookieSameSite) *SetCookieParams { p.SameSite = sameSite return &p }
go
func (p SetCookieParams) WithSameSite(sameSite CookieSameSite) *SetCookieParams { p.SameSite = sameSite return &p }
[ "func", "(", "p", "SetCookieParams", ")", "WithSameSite", "(", "sameSite", "CookieSameSite", ")", "*", "SetCookieParams", "{", "p", ".", "SameSite", "=", "sameSite", "\n", "return", "&", "p", "\n", "}" ]
// WithSameSite cookie SameSite type.
[ "WithSameSite", "cookie", "SameSite", "type", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L793-L796
test
chromedp/cdproto
network/network.go
WithExpires
func (p SetCookieParams) WithExpires(expires *cdp.TimeSinceEpoch) *SetCookieParams { p.Expires = expires return &p }
go
func (p SetCookieParams) WithExpires(expires *cdp.TimeSinceEpoch) *SetCookieParams { p.Expires = expires return &p }
[ "func", "(", "p", "SetCookieParams", ")", "WithExpires", "(", "expires", "*", "cdp", ".", "TimeSinceEpoch", ")", "*", "SetCookieParams", "{", "p", ".", "Expires", "=", "expires", "\n", "return", "&", "p", "\n", "}" ]
// WithExpires cookie expiration date, session cookie if not set.
[ "WithExpires", "cookie", "expiration", "date", "session", "cookie", "if", "not", "set", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L799-L802
test
chromedp/cdproto
network/network.go
Do
func (p *SetCookiesParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetCookies, p, nil) }
go
func (p *SetCookiesParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetCookies, p, nil) }
[ "func", "(", "p", "*", "SetCookiesParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetCookies", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.setCookies against the provided context.
[ "Do", "executes", "Network", ".", "setCookies", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L842-L844
test
chromedp/cdproto
network/network.go
Do
func (p *SetDataSizeLimitsForTestParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDataSizeLimitsForTest, p, nil) }
go
func (p *SetDataSizeLimitsForTestParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDataSizeLimitsForTest, p, nil) }
[ "func", "(", "p", "*", "SetDataSizeLimitsForTestParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetDataSizeLimitsForTest", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.setDataSizeLimitsForTest against the provided context.
[ "Do", "executes", "Network", ".", "setDataSizeLimitsForTest", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L867-L869
test
chromedp/cdproto
network/network.go
Do
func (p *SetExtraHTTPHeadersParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetExtraHTTPHeaders, p, nil) }
go
func (p *SetExtraHTTPHeadersParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetExtraHTTPHeaders, p, nil) }
[ "func", "(", "p", "*", "SetExtraHTTPHeadersParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetExtraHTTPHeaders", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.setExtraHTTPHeaders against the provided context.
[ "Do", "executes", "Network", ".", "setExtraHTTPHeaders", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L891-L893
test
chromedp/cdproto
network/network.go
Do
func (p *SetRequestInterceptionParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetRequestInterception, p, nil) }
go
func (p *SetRequestInterceptionParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetRequestInterception, p, nil) }
[ "func", "(", "p", "*", "SetRequestInterceptionParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetRequestInterception", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Network.setRequestInterception against the provided context.
[ "Do", "executes", "Network", ".", "setRequestInterception", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/network/network.go#L915-L917
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *ClearDeviceMetricsOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandClearDeviceMetricsOverride, nil, nil) }
go
func (p *ClearDeviceMetricsOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandClearDeviceMetricsOverride, nil, nil) }
[ "func", "(", "p", "*", "ClearDeviceMetricsOverrideParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandClearDeviceMetricsOverride", ",", "nil", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.clearDeviceMetricsOverride against the provided context.
[ "Do", "executes", "Emulation", ".", "clearDeviceMetricsOverride", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L59-L61
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *ClearGeolocationOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandClearGeolocationOverride, nil, nil) }
go
func (p *ClearGeolocationOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandClearGeolocationOverride, nil, nil) }
[ "func", "(", "p", "*", "ClearGeolocationOverrideParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandClearGeolocationOverride", ",", "nil", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.clearGeolocationOverride against the provided context.
[ "Do", "executes", "Emulation", ".", "clearGeolocationOverride", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L76-L78
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *ResetPageScaleFactorParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandResetPageScaleFactor, nil, nil) }
go
func (p *ResetPageScaleFactorParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandResetPageScaleFactor, nil, nil) }
[ "func", "(", "p", "*", "ResetPageScaleFactorParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandResetPageScaleFactor", ",", "nil", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.resetPageScaleFactor against the provided context.
[ "Do", "executes", "Emulation", ".", "resetPageScaleFactor", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L93-L95
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetFocusEmulationEnabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetFocusEmulationEnabled, p, nil) }
go
func (p *SetFocusEmulationEnabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetFocusEmulationEnabled, p, nil) }
[ "func", "(", "p", "*", "SetFocusEmulationEnabledParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetFocusEmulationEnabled", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setFocusEmulationEnabled against the provided context.
[ "Do", "executes", "Emulation", ".", "setFocusEmulationEnabled", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L117-L119
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetCPUThrottlingRateParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetCPUThrottlingRate, p, nil) }
go
func (p *SetCPUThrottlingRateParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetCPUThrottlingRate, p, nil) }
[ "func", "(", "p", "*", "SetCPUThrottlingRateParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetCPUThrottlingRate", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setCPUThrottlingRate against the provided context.
[ "Do", "executes", "Emulation", ".", "setCPUThrottlingRate", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L139-L141
test
chromedp/cdproto
emulation/emulation.go
WithColor
func (p SetDefaultBackgroundColorOverrideParams) WithColor(color *cdp.RGBA) *SetDefaultBackgroundColorOverrideParams { p.Color = color return &p }
go
func (p SetDefaultBackgroundColorOverrideParams) WithColor(color *cdp.RGBA) *SetDefaultBackgroundColorOverrideParams { p.Color = color return &p }
[ "func", "(", "p", "SetDefaultBackgroundColorOverrideParams", ")", "WithColor", "(", "color", "*", "cdp", ".", "RGBA", ")", "*", "SetDefaultBackgroundColorOverrideParams", "{", "p", ".", "Color", "=", "color", "\n", "return", "&", "p", "\n", "}" ]
// WithColor rGBA of the default background color. If not specified, any // existing override will be cleared.
[ "WithColor", "rGBA", "of", "the", "default", "background", "color", ".", "If", "not", "specified", "any", "existing", "override", "will", "be", "cleared", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L163-L166
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetDefaultBackgroundColorOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDefaultBackgroundColorOverride, p, nil) }
go
func (p *SetDefaultBackgroundColorOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDefaultBackgroundColorOverride, p, nil) }
[ "func", "(", "p", "*", "SetDefaultBackgroundColorOverrideParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetDefaultBackgroundColorOverride", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setDefaultBackgroundColorOverride against the provided context.
[ "Do", "executes", "Emulation", ".", "setDefaultBackgroundColorOverride", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L169-L171
test
chromedp/cdproto
emulation/emulation.go
WithScale
func (p SetDeviceMetricsOverrideParams) WithScale(scale float64) *SetDeviceMetricsOverrideParams { p.Scale = scale return &p }
go
func (p SetDeviceMetricsOverrideParams) WithScale(scale float64) *SetDeviceMetricsOverrideParams { p.Scale = scale return &p }
[ "func", "(", "p", "SetDeviceMetricsOverrideParams", ")", "WithScale", "(", "scale", "float64", ")", "*", "SetDeviceMetricsOverrideParams", "{", "p", ".", "Scale", "=", "scale", "\n", "return", "&", "p", "\n", "}" ]
// WithScale scale to apply to resulting view image.
[ "WithScale", "scale", "to", "apply", "to", "resulting", "view", "image", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L214-L217
test
chromedp/cdproto
emulation/emulation.go
WithDontSetVisibleSize
func (p SetDeviceMetricsOverrideParams) WithDontSetVisibleSize(dontSetVisibleSize bool) *SetDeviceMetricsOverrideParams { p.DontSetVisibleSize = dontSetVisibleSize return &p }
go
func (p SetDeviceMetricsOverrideParams) WithDontSetVisibleSize(dontSetVisibleSize bool) *SetDeviceMetricsOverrideParams { p.DontSetVisibleSize = dontSetVisibleSize return &p }
[ "func", "(", "p", "SetDeviceMetricsOverrideParams", ")", "WithDontSetVisibleSize", "(", "dontSetVisibleSize", "bool", ")", "*", "SetDeviceMetricsOverrideParams", "{", "p", ".", "DontSetVisibleSize", "=", "dontSetVisibleSize", "\n", "return", "&", "p", "\n", "}" ]
// WithDontSetVisibleSize do not set visible view size, rely upon explicit // setVisibleSize call.
[ "WithDontSetVisibleSize", "do", "not", "set", "visible", "view", "size", "rely", "upon", "explicit", "setVisibleSize", "call", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L249-L252
test
chromedp/cdproto
emulation/emulation.go
WithScreenOrientation
func (p SetDeviceMetricsOverrideParams) WithScreenOrientation(screenOrientation *ScreenOrientation) *SetDeviceMetricsOverrideParams { p.ScreenOrientation = screenOrientation return &p }
go
func (p SetDeviceMetricsOverrideParams) WithScreenOrientation(screenOrientation *ScreenOrientation) *SetDeviceMetricsOverrideParams { p.ScreenOrientation = screenOrientation return &p }
[ "func", "(", "p", "SetDeviceMetricsOverrideParams", ")", "WithScreenOrientation", "(", "screenOrientation", "*", "ScreenOrientation", ")", "*", "SetDeviceMetricsOverrideParams", "{", "p", ".", "ScreenOrientation", "=", "screenOrientation", "\n", "return", "&", "p", "\n", "}" ]
// WithScreenOrientation screen orientation override.
[ "WithScreenOrientation", "screen", "orientation", "override", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L255-L258
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetDeviceMetricsOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDeviceMetricsOverride, p, nil) }
go
func (p *SetDeviceMetricsOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDeviceMetricsOverride, p, nil) }
[ "func", "(", "p", "*", "SetDeviceMetricsOverrideParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetDeviceMetricsOverride", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setDeviceMetricsOverride against the provided context.
[ "Do", "executes", "Emulation", ".", "setDeviceMetricsOverride", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L269-L271
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetScrollbarsHiddenParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetScrollbarsHidden, p, nil) }
go
func (p *SetScrollbarsHiddenParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetScrollbarsHidden, p, nil) }
[ "func", "(", "p", "*", "SetScrollbarsHiddenParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetScrollbarsHidden", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setScrollbarsHidden against the provided context.
[ "Do", "executes", "Emulation", ".", "setScrollbarsHidden", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L291-L293
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetDocumentCookieDisabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDocumentCookieDisabled, p, nil) }
go
func (p *SetDocumentCookieDisabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDocumentCookieDisabled, p, nil) }
[ "func", "(", "p", "*", "SetDocumentCookieDisabledParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetDocumentCookieDisabled", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setDocumentCookieDisabled against the provided context.
[ "Do", "executes", "Emulation", ".", "setDocumentCookieDisabled", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L313-L315
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetEmitTouchEventsForMouseParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetEmitTouchEventsForMouse, p, nil) }
go
func (p *SetEmitTouchEventsForMouseParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetEmitTouchEventsForMouse, p, nil) }
[ "func", "(", "p", "*", "SetEmitTouchEventsForMouseParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetEmitTouchEventsForMouse", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setEmitTouchEventsForMouse against the provided context.
[ "Do", "executes", "Emulation", ".", "setEmitTouchEventsForMouse", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L343-L345
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetEmulatedMediaParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetEmulatedMedia, p, nil) }
go
func (p *SetEmulatedMediaParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetEmulatedMedia, p, nil) }
[ "func", "(", "p", "*", "SetEmulatedMediaParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetEmulatedMedia", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setEmulatedMedia against the provided context.
[ "Do", "executes", "Emulation", ".", "setEmulatedMedia", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L365-L367
test
chromedp/cdproto
emulation/emulation.go
WithLatitude
func (p SetGeolocationOverrideParams) WithLatitude(latitude float64) *SetGeolocationOverrideParams { p.Latitude = latitude return &p }
go
func (p SetGeolocationOverrideParams) WithLatitude(latitude float64) *SetGeolocationOverrideParams { p.Latitude = latitude return &p }
[ "func", "(", "p", "SetGeolocationOverrideParams", ")", "WithLatitude", "(", "latitude", "float64", ")", "*", "SetGeolocationOverrideParams", "{", "p", ".", "Latitude", "=", "latitude", "\n", "return", "&", "p", "\n", "}" ]
// WithLatitude mock latitude.
[ "WithLatitude", "mock", "latitude", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L388-L391
test
chromedp/cdproto
emulation/emulation.go
WithLongitude
func (p SetGeolocationOverrideParams) WithLongitude(longitude float64) *SetGeolocationOverrideParams { p.Longitude = longitude return &p }
go
func (p SetGeolocationOverrideParams) WithLongitude(longitude float64) *SetGeolocationOverrideParams { p.Longitude = longitude return &p }
[ "func", "(", "p", "SetGeolocationOverrideParams", ")", "WithLongitude", "(", "longitude", "float64", ")", "*", "SetGeolocationOverrideParams", "{", "p", ".", "Longitude", "=", "longitude", "\n", "return", "&", "p", "\n", "}" ]
// WithLongitude mock longitude.
[ "WithLongitude", "mock", "longitude", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L394-L397
test
chromedp/cdproto
emulation/emulation.go
WithAccuracy
func (p SetGeolocationOverrideParams) WithAccuracy(accuracy float64) *SetGeolocationOverrideParams { p.Accuracy = accuracy return &p }
go
func (p SetGeolocationOverrideParams) WithAccuracy(accuracy float64) *SetGeolocationOverrideParams { p.Accuracy = accuracy return &p }
[ "func", "(", "p", "SetGeolocationOverrideParams", ")", "WithAccuracy", "(", "accuracy", "float64", ")", "*", "SetGeolocationOverrideParams", "{", "p", ".", "Accuracy", "=", "accuracy", "\n", "return", "&", "p", "\n", "}" ]
// WithAccuracy mock accuracy.
[ "WithAccuracy", "mock", "accuracy", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L400-L403
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetGeolocationOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetGeolocationOverride, p, nil) }
go
func (p *SetGeolocationOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetGeolocationOverride, p, nil) }
[ "func", "(", "p", "*", "SetGeolocationOverrideParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetGeolocationOverride", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setGeolocationOverride against the provided context.
[ "Do", "executes", "Emulation", ".", "setGeolocationOverride", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L406-L408
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetPageScaleFactorParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetPageScaleFactor, p, nil) }
go
func (p *SetPageScaleFactorParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetPageScaleFactor, p, nil) }
[ "func", "(", "p", "*", "SetPageScaleFactorParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetPageScaleFactor", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setPageScaleFactor against the provided context.
[ "Do", "executes", "Emulation", ".", "setPageScaleFactor", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L428-L430
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetScriptExecutionDisabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetScriptExecutionDisabled, p, nil) }
go
func (p *SetScriptExecutionDisabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetScriptExecutionDisabled, p, nil) }
[ "func", "(", "p", "*", "SetScriptExecutionDisabledParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetScriptExecutionDisabled", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setScriptExecutionDisabled against the provided context.
[ "Do", "executes", "Emulation", ".", "setScriptExecutionDisabled", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L450-L452
test
chromedp/cdproto
emulation/emulation.go
WithMaxTouchPoints
func (p SetTouchEmulationEnabledParams) WithMaxTouchPoints(maxTouchPoints int64) *SetTouchEmulationEnabledParams { p.MaxTouchPoints = maxTouchPoints return &p }
go
func (p SetTouchEmulationEnabledParams) WithMaxTouchPoints(maxTouchPoints int64) *SetTouchEmulationEnabledParams { p.MaxTouchPoints = maxTouchPoints return &p }
[ "func", "(", "p", "SetTouchEmulationEnabledParams", ")", "WithMaxTouchPoints", "(", "maxTouchPoints", "int64", ")", "*", "SetTouchEmulationEnabledParams", "{", "p", ".", "MaxTouchPoints", "=", "maxTouchPoints", "\n", "return", "&", "p", "\n", "}" ]
// WithMaxTouchPoints maximum touch points supported. Defaults to one.
[ "WithMaxTouchPoints", "maximum", "touch", "points", "supported", ".", "Defaults", "to", "one", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L475-L478
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetTouchEmulationEnabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetTouchEmulationEnabled, p, nil) }
go
func (p *SetTouchEmulationEnabledParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetTouchEmulationEnabled, p, nil) }
[ "func", "(", "p", "*", "SetTouchEmulationEnabledParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetTouchEmulationEnabled", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setTouchEmulationEnabled against the provided context.
[ "Do", "executes", "Emulation", ".", "setTouchEmulationEnabled", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L481-L483
test
chromedp/cdproto
emulation/emulation.go
WithBudget
func (p SetVirtualTimePolicyParams) WithBudget(budget float64) *SetVirtualTimePolicyParams { p.Budget = budget return &p }
go
func (p SetVirtualTimePolicyParams) WithBudget(budget float64) *SetVirtualTimePolicyParams { p.Budget = budget return &p }
[ "func", "(", "p", "SetVirtualTimePolicyParams", ")", "WithBudget", "(", "budget", "float64", ")", "*", "SetVirtualTimePolicyParams", "{", "p", ".", "Budget", "=", "budget", "\n", "return", "&", "p", "\n", "}" ]
// WithBudget if set, after this many virtual milliseconds have elapsed // virtual time will be paused and a virtualTimeBudgetExpired event is sent.
[ "WithBudget", "if", "set", "after", "this", "many", "virtual", "milliseconds", "have", "elapsed", "virtual", "time", "will", "be", "paused", "and", "a", "virtualTimeBudgetExpired", "event", "is", "sent", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L512-L515
test
chromedp/cdproto
emulation/emulation.go
WithMaxVirtualTimeTaskStarvationCount
func (p SetVirtualTimePolicyParams) WithMaxVirtualTimeTaskStarvationCount(maxVirtualTimeTaskStarvationCount int64) *SetVirtualTimePolicyParams { p.MaxVirtualTimeTaskStarvationCount = maxVirtualTimeTaskStarvationCount return &p }
go
func (p SetVirtualTimePolicyParams) WithMaxVirtualTimeTaskStarvationCount(maxVirtualTimeTaskStarvationCount int64) *SetVirtualTimePolicyParams { p.MaxVirtualTimeTaskStarvationCount = maxVirtualTimeTaskStarvationCount return &p }
[ "func", "(", "p", "SetVirtualTimePolicyParams", ")", "WithMaxVirtualTimeTaskStarvationCount", "(", "maxVirtualTimeTaskStarvationCount", "int64", ")", "*", "SetVirtualTimePolicyParams", "{", "p", ".", "MaxVirtualTimeTaskStarvationCount", "=", "maxVirtualTimeTaskStarvationCount", "\n", "return", "&", "p", "\n", "}" ]
// WithMaxVirtualTimeTaskStarvationCount if set this specifies the maximum // number of tasks that can be run before virtual is forced forwards to prevent // deadlock.
[ "WithMaxVirtualTimeTaskStarvationCount", "if", "set", "this", "specifies", "the", "maximum", "number", "of", "tasks", "that", "can", "be", "run", "before", "virtual", "is", "forced", "forwards", "to", "prevent", "deadlock", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L520-L523
test
chromedp/cdproto
emulation/emulation.go
WithWaitForNavigation
func (p SetVirtualTimePolicyParams) WithWaitForNavigation(waitForNavigation bool) *SetVirtualTimePolicyParams { p.WaitForNavigation = waitForNavigation return &p }
go
func (p SetVirtualTimePolicyParams) WithWaitForNavigation(waitForNavigation bool) *SetVirtualTimePolicyParams { p.WaitForNavigation = waitForNavigation return &p }
[ "func", "(", "p", "SetVirtualTimePolicyParams", ")", "WithWaitForNavigation", "(", "waitForNavigation", "bool", ")", "*", "SetVirtualTimePolicyParams", "{", "p", ".", "WaitForNavigation", "=", "waitForNavigation", "\n", "return", "&", "p", "\n", "}" ]
// WithWaitForNavigation if set the virtual time policy change should be // deferred until any frame starts navigating. Note any previous deferred policy // change is superseded.
[ "WithWaitForNavigation", "if", "set", "the", "virtual", "time", "policy", "change", "should", "be", "deferred", "until", "any", "frame", "starts", "navigating", ".", "Note", "any", "previous", "deferred", "policy", "change", "is", "superseded", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L528-L531
test
chromedp/cdproto
emulation/emulation.go
WithAcceptLanguage
func (p SetUserAgentOverrideParams) WithAcceptLanguage(acceptLanguage string) *SetUserAgentOverrideParams { p.AcceptLanguage = acceptLanguage return &p }
go
func (p SetUserAgentOverrideParams) WithAcceptLanguage(acceptLanguage string) *SetUserAgentOverrideParams { p.AcceptLanguage = acceptLanguage return &p }
[ "func", "(", "p", "SetUserAgentOverrideParams", ")", "WithAcceptLanguage", "(", "acceptLanguage", "string", ")", "*", "SetUserAgentOverrideParams", "{", "p", ".", "AcceptLanguage", "=", "acceptLanguage", "\n", "return", "&", "p", "\n", "}" ]
// WithAcceptLanguage browser langugage to emulate.
[ "WithAcceptLanguage", "browser", "langugage", "to", "emulate", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L581-L584
test
chromedp/cdproto
emulation/emulation.go
WithPlatform
func (p SetUserAgentOverrideParams) WithPlatform(platform string) *SetUserAgentOverrideParams { p.Platform = platform return &p }
go
func (p SetUserAgentOverrideParams) WithPlatform(platform string) *SetUserAgentOverrideParams { p.Platform = platform return &p }
[ "func", "(", "p", "SetUserAgentOverrideParams", ")", "WithPlatform", "(", "platform", "string", ")", "*", "SetUserAgentOverrideParams", "{", "p", ".", "Platform", "=", "platform", "\n", "return", "&", "p", "\n", "}" ]
// WithPlatform the platform navigator.platform should return.
[ "WithPlatform", "the", "platform", "navigator", ".", "platform", "should", "return", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L587-L590
test
chromedp/cdproto
emulation/emulation.go
Do
func (p *SetUserAgentOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetUserAgentOverride, p, nil) }
go
func (p *SetUserAgentOverrideParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetUserAgentOverride, p, nil) }
[ "func", "(", "p", "*", "SetUserAgentOverrideParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetUserAgentOverride", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Emulation.setUserAgentOverride against the provided context.
[ "Do", "executes", "Emulation", ".", "setUserAgentOverride", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/emulation/emulation.go#L593-L595
test
chromedp/cdproto
input/input.go
Do
func (p *DispatchKeyEventParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandDispatchKeyEvent, p, nil) }
go
func (p *DispatchKeyEventParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandDispatchKeyEvent, p, nil) }
[ "func", "(", "p", "*", "DispatchKeyEventParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandDispatchKeyEvent", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.dispatchKeyEvent against the provided context.
[ "Do", "executes", "Input", ".", "dispatchKeyEvent", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L135-L137
test
chromedp/cdproto
input/input.go
Do
func (p *InsertTextParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandInsertText, p, nil) }
go
func (p *InsertTextParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandInsertText, p, nil) }
[ "func", "(", "p", "*", "InsertTextParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandInsertText", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.insertText against the provided context.
[ "Do", "executes", "Input", ".", "insertText", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L159-L161
test
chromedp/cdproto
input/input.go
WithButtons
func (p DispatchMouseEventParams) WithButtons(buttons int64) *DispatchMouseEventParams { p.Buttons = buttons return &p }
go
func (p DispatchMouseEventParams) WithButtons(buttons int64) *DispatchMouseEventParams { p.Buttons = buttons return &p }
[ "func", "(", "p", "DispatchMouseEventParams", ")", "WithButtons", "(", "buttons", "int64", ")", "*", "DispatchMouseEventParams", "{", "p", ".", "Buttons", "=", "buttons", "\n", "return", "&", "p", "\n", "}" ]
// WithButtons a number indicating which buttons are pressed on the mouse // when a mouse event is triggered. Left=1, Right=2, Middle=4, Back=8, // Forward=16, None=0.
[ "WithButtons", "a", "number", "indicating", "which", "buttons", "are", "pressed", "on", "the", "mouse", "when", "a", "mouse", "event", "is", "triggered", ".", "Left", "=", "1", "Right", "=", "2", "Middle", "=", "4", "Back", "=", "8", "Forward", "=", "16", "None", "=", "0", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L216-L219
test
chromedp/cdproto
input/input.go
Do
func (p *DispatchMouseEventParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandDispatchMouseEvent, p, nil) }
go
func (p *DispatchMouseEventParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandDispatchMouseEvent, p, nil) }
[ "func", "(", "p", "*", "DispatchMouseEventParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandDispatchMouseEvent", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.dispatchMouseEvent against the provided context.
[ "Do", "executes", "Input", ".", "dispatchMouseEvent", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L246-L248
test
chromedp/cdproto
input/input.go
Do
func (p *DispatchTouchEventParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandDispatchTouchEvent, p, nil) }
go
func (p *DispatchTouchEventParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandDispatchTouchEvent, p, nil) }
[ "func", "(", "p", "*", "DispatchTouchEventParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandDispatchTouchEvent", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.dispatchTouchEvent against the provided context.
[ "Do", "executes", "Input", ".", "dispatchTouchEvent", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L286-L288
test
chromedp/cdproto
input/input.go
Do
func (p *EmulateTouchFromMouseEventParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandEmulateTouchFromMouseEvent, p, nil) }
go
func (p *EmulateTouchFromMouseEventParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandEmulateTouchFromMouseEvent, p, nil) }
[ "func", "(", "p", "*", "EmulateTouchFromMouseEventParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandEmulateTouchFromMouseEvent", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.emulateTouchFromMouseEvent against the provided context.
[ "Do", "executes", "Input", ".", "emulateTouchFromMouseEvent", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L355-L357
test
chromedp/cdproto
input/input.go
Do
func (p *SetIgnoreInputEventsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetIgnoreInputEvents, p, nil) }
go
func (p *SetIgnoreInputEventsParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetIgnoreInputEvents, p, nil) }
[ "func", "(", "p", "*", "SetIgnoreInputEventsParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetIgnoreInputEvents", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.setIgnoreInputEvents against the provided context.
[ "Do", "executes", "Input", ".", "setIgnoreInputEvents", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L378-L380
test
chromedp/cdproto
input/input.go
Do
func (p *SynthesizePinchGestureParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSynthesizePinchGesture, p, nil) }
go
func (p *SynthesizePinchGestureParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSynthesizePinchGesture, p, nil) }
[ "func", "(", "p", "*", "SynthesizePinchGestureParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSynthesizePinchGesture", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.synthesizePinchGesture against the provided context.
[ "Do", "executes", "Input", ".", "synthesizePinchGesture", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L424-L426
test
chromedp/cdproto
input/input.go
WithXOverscroll
func (p SynthesizeScrollGestureParams) WithXOverscroll(xOverscroll float64) *SynthesizeScrollGestureParams { p.XOverscroll = xOverscroll return &p }
go
func (p SynthesizeScrollGestureParams) WithXOverscroll(xOverscroll float64) *SynthesizeScrollGestureParams { p.XOverscroll = xOverscroll return &p }
[ "func", "(", "p", "SynthesizeScrollGestureParams", ")", "WithXOverscroll", "(", "xOverscroll", "float64", ")", "*", "SynthesizeScrollGestureParams", "{", "p", ".", "XOverscroll", "=", "xOverscroll", "\n", "return", "&", "p", "\n", "}" ]
// WithXOverscroll the number of additional pixels to scroll back along the X // axis, in addition to the given distance.
[ "WithXOverscroll", "the", "number", "of", "additional", "pixels", "to", "scroll", "back", "along", "the", "X", "axis", "in", "addition", "to", "the", "given", "distance", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L476-L479
test
chromedp/cdproto
input/input.go
WithYOverscroll
func (p SynthesizeScrollGestureParams) WithYOverscroll(yOverscroll float64) *SynthesizeScrollGestureParams { p.YOverscroll = yOverscroll return &p }
go
func (p SynthesizeScrollGestureParams) WithYOverscroll(yOverscroll float64) *SynthesizeScrollGestureParams { p.YOverscroll = yOverscroll return &p }
[ "func", "(", "p", "SynthesizeScrollGestureParams", ")", "WithYOverscroll", "(", "yOverscroll", "float64", ")", "*", "SynthesizeScrollGestureParams", "{", "p", ".", "YOverscroll", "=", "yOverscroll", "\n", "return", "&", "p", "\n", "}" ]
// WithYOverscroll the number of additional pixels to scroll back along the Y // axis, in addition to the given distance.
[ "WithYOverscroll", "the", "number", "of", "additional", "pixels", "to", "scroll", "back", "along", "the", "Y", "axis", "in", "addition", "to", "the", "given", "distance", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L483-L486
test
chromedp/cdproto
input/input.go
Do
func (p *SynthesizeScrollGestureParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSynthesizeScrollGesture, p, nil) }
go
func (p *SynthesizeScrollGestureParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSynthesizeScrollGesture, p, nil) }
[ "func", "(", "p", "*", "SynthesizeScrollGestureParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSynthesizeScrollGesture", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.synthesizeScrollGesture against the provided context.
[ "Do", "executes", "Input", ".", "synthesizeScrollGesture", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L528-L530
test
chromedp/cdproto
input/input.go
Do
func (p *SynthesizeTapGestureParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSynthesizeTapGesture, p, nil) }
go
func (p *SynthesizeTapGestureParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSynthesizeTapGesture, p, nil) }
[ "func", "(", "p", "*", "SynthesizeTapGestureParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSynthesizeTapGesture", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes Input.synthesizeTapGesture against the provided context.
[ "Do", "executes", "Input", ".", "synthesizeTapGesture", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/input.go#L579-L581
test
chromedp/cdproto
cdproto.go
Domain
func (t MethodType) Domain() string { return string(t[:strings.IndexByte(string(t), '.')]) }
go
func (t MethodType) Domain() string { return string(t[:strings.IndexByte(string(t), '.')]) }
[ "func", "(", "t", "MethodType", ")", "Domain", "(", ")", "string", "{", "return", "string", "(", "t", "[", ":", "strings", ".", "IndexByte", "(", "string", "(", "t", ")", ",", "'.'", ")", "]", ")", "\n", "}" ]
// Domain returns the Chrome DevTools Protocol domain of the event or command.
[ "Domain", "returns", "the", "Chrome", "DevTools", "Protocol", "domain", "of", "the", "event", "or", "command", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cdproto.go#L70-L72
test
chromedp/cdproto
domdebugger/domdebugger.go
WithDepth
func (p GetEventListenersParams) WithDepth(depth int64) *GetEventListenersParams { p.Depth = depth return &p }
go
func (p GetEventListenersParams) WithDepth(depth int64) *GetEventListenersParams { p.Depth = depth return &p }
[ "func", "(", "p", "GetEventListenersParams", ")", "WithDepth", "(", "depth", "int64", ")", "*", "GetEventListenersParams", "{", "p", ".", "Depth", "=", "depth", "\n", "return", "&", "p", "\n", "}" ]
// WithDepth the maximum depth at which Node children should be retrieved, // defaults to 1. Use -1 for the entire subtree or provide an integer larger // than 0.
[ "WithDepth", "the", "maximum", "depth", "at", "which", "Node", "children", "should", "be", "retrieved", "defaults", "to", "1", ".", "Use", "-", "1", "for", "the", "entire", "subtree", "or", "provide", "an", "integer", "larger", "than", "0", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L42-L45
test
chromedp/cdproto
domdebugger/domdebugger.go
Do
func (p *RemoveDOMBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandRemoveDOMBreakpoint, p, nil) }
go
func (p *RemoveDOMBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandRemoveDOMBreakpoint, p, nil) }
[ "func", "(", "p", "*", "RemoveDOMBreakpointParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandRemoveDOMBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes DOMDebugger.removeDOMBreakpoint against the provided context.
[ "Do", "executes", "DOMDebugger", ".", "removeDOMBreakpoint", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L98-L100
test
chromedp/cdproto
domdebugger/domdebugger.go
WithTargetName
func (p RemoveEventListenerBreakpointParams) WithTargetName(targetName string) *RemoveEventListenerBreakpointParams { p.TargetName = targetName return &p }
go
func (p RemoveEventListenerBreakpointParams) WithTargetName(targetName string) *RemoveEventListenerBreakpointParams { p.TargetName = targetName return &p }
[ "func", "(", "p", "RemoveEventListenerBreakpointParams", ")", "WithTargetName", "(", "targetName", "string", ")", "*", "RemoveEventListenerBreakpointParams", "{", "p", ".", "TargetName", "=", "targetName", "\n", "return", "&", "p", "\n", "}" ]
// WithTargetName eventTarget interface name.
[ "WithTargetName", "eventTarget", "interface", "name", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L122-L125
test
chromedp/cdproto
domdebugger/domdebugger.go
Do
func (p *RemoveEventListenerBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandRemoveEventListenerBreakpoint, p, nil) }
go
func (p *RemoveEventListenerBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandRemoveEventListenerBreakpoint, p, nil) }
[ "func", "(", "p", "*", "RemoveEventListenerBreakpointParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandRemoveEventListenerBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes DOMDebugger.removeEventListenerBreakpoint against the provided context.
[ "Do", "executes", "DOMDebugger", ".", "removeEventListenerBreakpoint", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L128-L130
test
chromedp/cdproto
domdebugger/domdebugger.go
Do
func (p *RemoveInstrumentationBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandRemoveInstrumentationBreakpoint, p, nil) }
go
func (p *RemoveInstrumentationBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandRemoveInstrumentationBreakpoint, p, nil) }
[ "func", "(", "p", "*", "RemoveInstrumentationBreakpointParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandRemoveInstrumentationBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes DOMDebugger.removeInstrumentationBreakpoint against the provided context.
[ "Do", "executes", "DOMDebugger", ".", "removeInstrumentationBreakpoint", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L152-L154
test
chromedp/cdproto
domdebugger/domdebugger.go
Do
func (p *RemoveXHRBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandRemoveXHRBreakpoint, p, nil) }
go
func (p *RemoveXHRBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandRemoveXHRBreakpoint, p, nil) }
[ "func", "(", "p", "*", "RemoveXHRBreakpointParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandRemoveXHRBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes DOMDebugger.removeXHRBreakpoint against the provided context.
[ "Do", "executes", "DOMDebugger", ".", "removeXHRBreakpoint", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L174-L176
test
chromedp/cdproto
domdebugger/domdebugger.go
Do
func (p *SetDOMBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDOMBreakpoint, p, nil) }
go
func (p *SetDOMBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetDOMBreakpoint, p, nil) }
[ "func", "(", "p", "*", "SetDOMBreakpointParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetDOMBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes DOMDebugger.setDOMBreakpoint against the provided context.
[ "Do", "executes", "DOMDebugger", ".", "setDOMBreakpoint", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L199-L201
test
chromedp/cdproto
domdebugger/domdebugger.go
Do
func (p *SetEventListenerBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetEventListenerBreakpoint, p, nil) }
go
func (p *SetEventListenerBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetEventListenerBreakpoint, p, nil) }
[ "func", "(", "p", "*", "SetEventListenerBreakpointParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetEventListenerBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes DOMDebugger.setEventListenerBreakpoint against the provided context.
[ "Do", "executes", "DOMDebugger", ".", "setEventListenerBreakpoint", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L229-L231
test
chromedp/cdproto
domdebugger/domdebugger.go
Do
func (p *SetInstrumentationBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetInstrumentationBreakpoint, p, nil) }
go
func (p *SetInstrumentationBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetInstrumentationBreakpoint, p, nil) }
[ "func", "(", "p", "*", "SetInstrumentationBreakpointParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetInstrumentationBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes DOMDebugger.setInstrumentationBreakpoint against the provided context.
[ "Do", "executes", "DOMDebugger", ".", "setInstrumentationBreakpoint", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L252-L254
test
chromedp/cdproto
domdebugger/domdebugger.go
Do
func (p *SetXHRBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetXHRBreakpoint, p, nil) }
go
func (p *SetXHRBreakpointParams) Do(ctx context.Context) (err error) { return cdp.Execute(ctx, CommandSetXHRBreakpoint, p, nil) }
[ "func", "(", "p", "*", "SetXHRBreakpointParams", ")", "Do", "(", "ctx", "context", ".", "Context", ")", "(", "err", "error", ")", "{", "return", "cdp", ".", "Execute", "(", "ctx", ",", "CommandSetXHRBreakpoint", ",", "p", ",", "nil", ")", "\n", "}" ]
// Do executes DOMDebugger.setXHRBreakpoint against the provided context.
[ "Do", "executes", "DOMDebugger", ".", "setXHRBreakpoint", "against", "the", "provided", "context", "." ]
d40c70bcdf242660a32f2eadf323662dd75378b5
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/domdebugger/domdebugger.go#L274-L276
test