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
|
serviceworker/serviceworker.go
|
Do
|
func (p *StopAllWorkersParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopAllWorkers, nil, nil)
}
|
go
|
func (p *StopAllWorkersParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopAllWorkers, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"StopAllWorkersParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStopAllWorkers",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes ServiceWorker.stopAllWorkers against the provided context.
|
[
"Do",
"executes",
"ServiceWorker",
".",
"stopAllWorkers",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L203-L205
|
test
|
chromedp/cdproto
|
serviceworker/serviceworker.go
|
Do
|
func (p *StopWorkerParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopWorker, p, nil)
}
|
go
|
func (p *StopWorkerParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopWorker, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"StopWorkerParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStopWorker",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes ServiceWorker.stopWorker against the provided context.
|
[
"Do",
"executes",
"ServiceWorker",
".",
"stopWorker",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L225-L227
|
test
|
chromedp/cdproto
|
serviceworker/serviceworker.go
|
Do
|
func (p *UnregisterParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUnregister, p, nil)
}
|
go
|
func (p *UnregisterParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUnregister, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"UnregisterParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandUnregister",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes ServiceWorker.unregister against the provided context.
|
[
"Do",
"executes",
"ServiceWorker",
".",
"unregister",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L247-L249
|
test
|
chromedp/cdproto
|
serviceworker/serviceworker.go
|
Do
|
func (p *UpdateRegistrationParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUpdateRegistration, p, nil)
}
|
go
|
func (p *UpdateRegistrationParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUpdateRegistration, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"UpdateRegistrationParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandUpdateRegistration",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes ServiceWorker.updateRegistration against the provided context.
|
[
"Do",
"executes",
"ServiceWorker",
".",
"updateRegistration",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/serviceworker/serviceworker.go#L269-L271
|
test
|
chromedp/cdproto
|
tethering/tethering.go
|
Do
|
func (p *BindParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandBind, p, nil)
}
|
go
|
func (p *BindParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandBind, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"BindParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandBind",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Tethering.bind against the provided context.
|
[
"Do",
"executes",
"Tethering",
".",
"bind",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/tethering/tethering.go#L35-L37
|
test
|
chromedp/cdproto
|
tethering/tethering.go
|
Do
|
func (p *UnbindParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUnbind, p, nil)
}
|
go
|
func (p *UnbindParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUnbind, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"UnbindParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandUnbind",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Tethering.unbind against the provided context.
|
[
"Do",
"executes",
"Tethering",
".",
"unbind",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/tethering/tethering.go#L57-L59
|
test
|
chromedp/cdproto
|
runtime/types.go
|
Error
|
func (e *ExceptionDetails) Error() string {
// TODO: watch script parsed events and match the ExceptionDetails.ScriptID
// to the name/location of the actual code and display here
return fmt.Sprintf("encountered exception '%s' (%d:%d)", e.Text, e.LineNumber, e.ColumnNumber)
}
|
go
|
func (e *ExceptionDetails) Error() string {
// TODO: watch script parsed events and match the ExceptionDetails.ScriptID
// to the name/location of the actual code and display here
return fmt.Sprintf("encountered exception '%s' (%d:%d)", e.Text, e.LineNumber, e.ColumnNumber)
}
|
[
"func",
"(",
"e",
"*",
"ExceptionDetails",
")",
"Error",
"(",
")",
"string",
"{",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"encountered exception '%s' (%d:%d)\"",
",",
"e",
".",
"Text",
",",
"e",
".",
"LineNumber",
",",
"e",
".",
"ColumnNumber",
")",
"\n",
"}"
] |
// Error satisfies the error interface.
|
[
"Error",
"satisfies",
"the",
"error",
"interface",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/runtime/types.go#L182-L186
|
test
|
chromedp/cdproto
|
animation/animation.go
|
Do
|
func (p *ReleaseAnimationsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandReleaseAnimations, p, nil)
}
|
go
|
func (p *ReleaseAnimationsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandReleaseAnimations, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"ReleaseAnimationsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandReleaseAnimations",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Animation.releaseAnimations against the provided context.
|
[
"Do",
"executes",
"Animation",
".",
"releaseAnimations",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L133-L135
|
test
|
chromedp/cdproto
|
animation/animation.go
|
Do
|
func (p *SeekAnimationsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSeekAnimations, p, nil)
}
|
go
|
func (p *SeekAnimationsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSeekAnimations, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SeekAnimationsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSeekAnimations",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Animation.seekAnimations against the provided context.
|
[
"Do",
"executes",
"Animation",
".",
"seekAnimations",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L197-L199
|
test
|
chromedp/cdproto
|
animation/animation.go
|
Do
|
func (p *SetPausedParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetPaused, p, nil)
}
|
go
|
func (p *SetPausedParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetPaused, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetPausedParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetPaused",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Animation.setPaused against the provided context.
|
[
"Do",
"executes",
"Animation",
".",
"setPaused",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L222-L224
|
test
|
chromedp/cdproto
|
animation/animation.go
|
Do
|
func (p *SetPlaybackRateParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetPlaybackRate, p, nil)
}
|
go
|
func (p *SetPlaybackRateParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetPlaybackRate, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetPlaybackRateParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetPlaybackRate",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Animation.setPlaybackRate against the provided context.
|
[
"Do",
"executes",
"Animation",
".",
"setPlaybackRate",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L244-L246
|
test
|
chromedp/cdproto
|
animation/animation.go
|
Do
|
func (p *SetTimingParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetTiming, p, nil)
}
|
go
|
func (p *SetTimingParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetTiming, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetTimingParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetTiming",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Animation.setTiming against the provided context.
|
[
"Do",
"executes",
"Animation",
".",
"setTiming",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/animation/animation.go#L272-L274
|
test
|
chromedp/cdproto
|
memory/memory.go
|
Do
|
func (p *PrepareForLeakDetectionParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandPrepareForLeakDetection, nil, nil)
}
|
go
|
func (p *PrepareForLeakDetectionParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandPrepareForLeakDetection, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"PrepareForLeakDetectionParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandPrepareForLeakDetection",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Memory.prepareForLeakDetection against the provided context.
|
[
"Do",
"executes",
"Memory",
".",
"prepareForLeakDetection",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L60-L62
|
test
|
chromedp/cdproto
|
memory/memory.go
|
Do
|
func (p *ForciblyPurgeJavaScriptMemoryParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandForciblyPurgeJavaScriptMemory, nil, nil)
}
|
go
|
func (p *ForciblyPurgeJavaScriptMemoryParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandForciblyPurgeJavaScriptMemory, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"ForciblyPurgeJavaScriptMemoryParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandForciblyPurgeJavaScriptMemory",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Memory.forciblyPurgeJavaScriptMemory against the provided context.
|
[
"Do",
"executes",
"Memory",
".",
"forciblyPurgeJavaScriptMemory",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L77-L79
|
test
|
chromedp/cdproto
|
memory/memory.go
|
Do
|
func (p *SetPressureNotificationsSuppressedParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetPressureNotificationsSuppressed, p, nil)
}
|
go
|
func (p *SetPressureNotificationsSuppressedParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetPressureNotificationsSuppressed, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetPressureNotificationsSuppressedParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetPressureNotificationsSuppressed",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Memory.setPressureNotificationsSuppressed against the provided context.
|
[
"Do",
"executes",
"Memory",
".",
"setPressureNotificationsSuppressed",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L101-L103
|
test
|
chromedp/cdproto
|
memory/memory.go
|
Do
|
func (p *SimulatePressureNotificationParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSimulatePressureNotification, p, nil)
}
|
go
|
func (p *SimulatePressureNotificationParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSimulatePressureNotification, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SimulatePressureNotificationParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSimulatePressureNotification",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Memory.simulatePressureNotification against the provided context.
|
[
"Do",
"executes",
"Memory",
".",
"simulatePressureNotification",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L125-L127
|
test
|
chromedp/cdproto
|
memory/memory.go
|
WithSamplingInterval
|
func (p StartSamplingParams) WithSamplingInterval(samplingInterval int64) *StartSamplingParams {
p.SamplingInterval = samplingInterval
return &p
}
|
go
|
func (p StartSamplingParams) WithSamplingInterval(samplingInterval int64) *StartSamplingParams {
p.SamplingInterval = samplingInterval
return &p
}
|
[
"func",
"(",
"p",
"StartSamplingParams",
")",
"WithSamplingInterval",
"(",
"samplingInterval",
"int64",
")",
"*",
"StartSamplingParams",
"{",
"p",
".",
"SamplingInterval",
"=",
"samplingInterval",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithSamplingInterval average number of bytes between samples.
|
[
"WithSamplingInterval",
"average",
"number",
"of",
"bytes",
"between",
"samples",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L145-L148
|
test
|
chromedp/cdproto
|
memory/memory.go
|
WithSuppressRandomness
|
func (p StartSamplingParams) WithSuppressRandomness(suppressRandomness bool) *StartSamplingParams {
p.SuppressRandomness = suppressRandomness
return &p
}
|
go
|
func (p StartSamplingParams) WithSuppressRandomness(suppressRandomness bool) *StartSamplingParams {
p.SuppressRandomness = suppressRandomness
return &p
}
|
[
"func",
"(",
"p",
"StartSamplingParams",
")",
"WithSuppressRandomness",
"(",
"suppressRandomness",
"bool",
")",
"*",
"StartSamplingParams",
"{",
"p",
".",
"SuppressRandomness",
"=",
"suppressRandomness",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithSuppressRandomness do not randomize intervals between samples.
|
[
"WithSuppressRandomness",
"do",
"not",
"randomize",
"intervals",
"between",
"samples",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L151-L154
|
test
|
chromedp/cdproto
|
memory/memory.go
|
Do
|
func (p *StartSamplingParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartSampling, p, nil)
}
|
go
|
func (p *StartSamplingParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartSampling, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"StartSamplingParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStartSampling",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Memory.startSampling against the provided context.
|
[
"Do",
"executes",
"Memory",
".",
"startSampling",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L157-L159
|
test
|
chromedp/cdproto
|
memory/memory.go
|
Do
|
func (p *StopSamplingParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopSampling, nil, nil)
}
|
go
|
func (p *StopSamplingParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopSampling, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"StopSamplingParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStopSampling",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Memory.stopSampling against the provided context.
|
[
"Do",
"executes",
"Memory",
".",
"stopSampling",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/memory/memory.go#L172-L174
|
test
|
chromedp/cdproto
|
deviceorientation/deviceorientation.go
|
Do
|
func (p *ClearDeviceOrientationOverrideParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandClearDeviceOrientationOverride, nil, nil)
}
|
go
|
func (p *ClearDeviceOrientationOverrideParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandClearDeviceOrientationOverride, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"ClearDeviceOrientationOverrideParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandClearDeviceOrientationOverride",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DeviceOrientation.clearDeviceOrientationOverride against the provided context.
|
[
"Do",
"executes",
"DeviceOrientation",
".",
"clearDeviceOrientationOverride",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/deviceorientation/deviceorientation.go#L27-L29
|
test
|
chromedp/cdproto
|
deviceorientation/deviceorientation.go
|
Do
|
func (p *SetDeviceOrientationOverrideParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetDeviceOrientationOverride, p, nil)
}
|
go
|
func (p *SetDeviceOrientationOverrideParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetDeviceOrientationOverride, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetDeviceOrientationOverrideParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetDeviceOrientationOverride",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DeviceOrientation.setDeviceOrientationOverride against the provided context.
|
[
"Do",
"executes",
"DeviceOrientation",
".",
"setDeviceOrientationOverride",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/deviceorientation/deviceorientation.go#L55-L57
|
test
|
chromedp/cdproto
|
log/log.go
|
Do
|
func (p *StartViolationsReportParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartViolationsReport, p, nil)
}
|
go
|
func (p *StartViolationsReportParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartViolationsReport, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"StartViolationsReportParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStartViolationsReport",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Log.startViolationsReport against the provided context.
|
[
"Do",
"executes",
"Log",
".",
"startViolationsReport",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/log/log.go#L84-L86
|
test
|
chromedp/cdproto
|
log/log.go
|
Do
|
func (p *StopViolationsReportParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopViolationsReport, nil, nil)
}
|
go
|
func (p *StopViolationsReportParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopViolationsReport, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"StopViolationsReportParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStopViolationsReport",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Log.stopViolationsReport against the provided context.
|
[
"Do",
"executes",
"Log",
".",
"stopViolationsReport",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/log/log.go#L99-L101
|
test
|
chromedp/cdproto
|
input/types.go
|
String
|
func (t Modifier) String() string {
switch t {
case ModifierNone:
return "None"
case ModifierAlt:
return "Alt"
case ModifierCtrl:
return "Ctrl"
case ModifierMeta:
return "Meta"
case ModifierShift:
return "Shift"
}
return fmt.Sprintf("Modifier(%d)", t)
}
|
go
|
func (t Modifier) String() string {
switch t {
case ModifierNone:
return "None"
case ModifierAlt:
return "Alt"
case ModifierCtrl:
return "Ctrl"
case ModifierMeta:
return "Meta"
case ModifierShift:
return "Shift"
}
return fmt.Sprintf("Modifier(%d)", t)
}
|
[
"func",
"(",
"t",
"Modifier",
")",
"String",
"(",
")",
"string",
"{",
"switch",
"t",
"{",
"case",
"ModifierNone",
":",
"return",
"\"None\"",
"\n",
"case",
"ModifierAlt",
":",
"return",
"\"Alt\"",
"\n",
"case",
"ModifierCtrl",
":",
"return",
"\"Ctrl\"",
"\n",
"case",
"ModifierMeta",
":",
"return",
"\"Meta\"",
"\n",
"case",
"ModifierShift",
":",
"return",
"\"Shift\"",
"\n",
"}",
"\n",
"return",
"fmt",
".",
"Sprintf",
"(",
"\"Modifier(%d)\"",
",",
"t",
")",
"\n",
"}"
] |
// String returns the Modifier as string value.
|
[
"String",
"returns",
"the",
"Modifier",
"as",
"string",
"value",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/input/types.go#L127-L142
|
test
|
chromedp/cdproto
|
accessibility/accessibility.go
|
WithNodeID
|
func (p GetPartialAXTreeParams) WithNodeID(nodeID cdp.NodeID) *GetPartialAXTreeParams {
p.NodeID = nodeID
return &p
}
|
go
|
func (p GetPartialAXTreeParams) WithNodeID(nodeID cdp.NodeID) *GetPartialAXTreeParams {
p.NodeID = nodeID
return &p
}
|
[
"func",
"(",
"p",
"GetPartialAXTreeParams",
")",
"WithNodeID",
"(",
"nodeID",
"cdp",
".",
"NodeID",
")",
"*",
"GetPartialAXTreeParams",
"{",
"p",
".",
"NodeID",
"=",
"nodeID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithNodeID identifier of the node to get the partial accessibility tree
// for.
|
[
"WithNodeID",
"identifier",
"of",
"the",
"node",
"to",
"get",
"the",
"partial",
"accessibility",
"tree",
"for",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/accessibility/accessibility.go#L71-L74
|
test
|
chromedp/cdproto
|
accessibility/accessibility.go
|
WithBackendNodeID
|
func (p GetPartialAXTreeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetPartialAXTreeParams {
p.BackendNodeID = backendNodeID
return &p
}
|
go
|
func (p GetPartialAXTreeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *GetPartialAXTreeParams {
p.BackendNodeID = backendNodeID
return &p
}
|
[
"func",
"(",
"p",
"GetPartialAXTreeParams",
")",
"WithBackendNodeID",
"(",
"backendNodeID",
"cdp",
".",
"BackendNodeID",
")",
"*",
"GetPartialAXTreeParams",
"{",
"p",
".",
"BackendNodeID",
"=",
"backendNodeID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithBackendNodeID identifier of the backend node to get the partial
// accessibility tree for.
|
[
"WithBackendNodeID",
"identifier",
"of",
"the",
"backend",
"node",
"to",
"get",
"the",
"partial",
"accessibility",
"tree",
"for",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/accessibility/accessibility.go#L78-L81
|
test
|
chromedp/cdproto
|
accessibility/accessibility.go
|
WithObjectID
|
func (p GetPartialAXTreeParams) WithObjectID(objectID runtime.RemoteObjectID) *GetPartialAXTreeParams {
p.ObjectID = objectID
return &p
}
|
go
|
func (p GetPartialAXTreeParams) WithObjectID(objectID runtime.RemoteObjectID) *GetPartialAXTreeParams {
p.ObjectID = objectID
return &p
}
|
[
"func",
"(",
"p",
"GetPartialAXTreeParams",
")",
"WithObjectID",
"(",
"objectID",
"runtime",
".",
"RemoteObjectID",
")",
"*",
"GetPartialAXTreeParams",
"{",
"p",
".",
"ObjectID",
"=",
"objectID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithObjectID JavaScript object id of the node wrapper to get the partial
// accessibility tree for.
|
[
"WithObjectID",
"JavaScript",
"object",
"id",
"of",
"the",
"node",
"wrapper",
"to",
"get",
"the",
"partial",
"accessibility",
"tree",
"for",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/accessibility/accessibility.go#L85-L88
|
test
|
chromedp/cdproto
|
accessibility/accessibility.go
|
WithFetchRelatives
|
func (p GetPartialAXTreeParams) WithFetchRelatives(fetchRelatives bool) *GetPartialAXTreeParams {
p.FetchRelatives = fetchRelatives
return &p
}
|
go
|
func (p GetPartialAXTreeParams) WithFetchRelatives(fetchRelatives bool) *GetPartialAXTreeParams {
p.FetchRelatives = fetchRelatives
return &p
}
|
[
"func",
"(",
"p",
"GetPartialAXTreeParams",
")",
"WithFetchRelatives",
"(",
"fetchRelatives",
"bool",
")",
"*",
"GetPartialAXTreeParams",
"{",
"p",
".",
"FetchRelatives",
"=",
"fetchRelatives",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithFetchRelatives whether to fetch this nodes ancestors, siblings and
// children. Defaults to true.
|
[
"WithFetchRelatives",
"whether",
"to",
"fetch",
"this",
"nodes",
"ancestors",
"siblings",
"and",
"children",
".",
"Defaults",
"to",
"true",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/accessibility/accessibility.go#L92-L95
|
test
|
chromedp/cdproto
|
performance/performance.go
|
Do
|
func (p *SetTimeDomainParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetTimeDomain, p, nil)
}
|
go
|
func (p *SetTimeDomainParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetTimeDomain, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetTimeDomainParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetTimeDomain",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Performance.setTimeDomain against the provided context.
|
[
"Do",
"executes",
"Performance",
".",
"setTimeDomain",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/performance/performance.go#L69-L71
|
test
|
chromedp/cdproto
|
layertree/layertree.go
|
WithClipRect
|
func (p ProfileSnapshotParams) WithClipRect(clipRect *dom.Rect) *ProfileSnapshotParams {
p.ClipRect = clipRect
return &p
}
|
go
|
func (p ProfileSnapshotParams) WithClipRect(clipRect *dom.Rect) *ProfileSnapshotParams {
p.ClipRect = clipRect
return &p
}
|
[
"func",
"(",
"p",
"ProfileSnapshotParams",
")",
"WithClipRect",
"(",
"clipRect",
"*",
"dom",
".",
"Rect",
")",
"*",
"ProfileSnapshotParams",
"{",
"p",
".",
"ClipRect",
"=",
"clipRect",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithClipRect the clip rectangle to apply when replaying the snapshot.
|
[
"WithClipRect",
"the",
"clip",
"rectangle",
"to",
"apply",
"when",
"replaying",
"the",
"snapshot",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/layertree/layertree.go#L194-L197
|
test
|
chromedp/cdproto
|
layertree/layertree.go
|
Do
|
func (p *ReleaseSnapshotParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandReleaseSnapshot, p, nil)
}
|
go
|
func (p *ReleaseSnapshotParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandReleaseSnapshot, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"ReleaseSnapshotParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandReleaseSnapshot",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes LayerTree.releaseSnapshot against the provided context.
|
[
"Do",
"executes",
"LayerTree",
".",
"releaseSnapshot",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/layertree/layertree.go#L237-L239
|
test
|
chromedp/cdproto
|
indexeddb/indexeddb.go
|
Do
|
func (p *ClearObjectStoreParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandClearObjectStore, p, nil)
}
|
go
|
func (p *ClearObjectStoreParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandClearObjectStore, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"ClearObjectStoreParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandClearObjectStore",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes IndexedDB.clearObjectStore against the provided context.
|
[
"Do",
"executes",
"IndexedDB",
".",
"clearObjectStore",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/indexeddb/indexeddb.go#L39-L41
|
test
|
chromedp/cdproto
|
indexeddb/indexeddb.go
|
Do
|
func (p *DeleteDatabaseParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDeleteDatabase, p, nil)
}
|
go
|
func (p *DeleteDatabaseParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDeleteDatabase, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"DeleteDatabaseParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandDeleteDatabase",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes IndexedDB.deleteDatabase against the provided context.
|
[
"Do",
"executes",
"IndexedDB",
".",
"deleteDatabase",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/indexeddb/indexeddb.go#L64-L66
|
test
|
chromedp/cdproto
|
indexeddb/indexeddb.go
|
Do
|
func (p *DeleteObjectStoreEntriesParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDeleteObjectStoreEntries, p, nil)
}
|
go
|
func (p *DeleteObjectStoreEntriesParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDeleteObjectStoreEntries, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"DeleteObjectStoreEntriesParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandDeleteObjectStoreEntries",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes IndexedDB.deleteObjectStoreEntries against the provided context.
|
[
"Do",
"executes",
"IndexedDB",
".",
"deleteObjectStoreEntries",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/indexeddb/indexeddb.go#L96-L98
|
test
|
chromedp/cdproto
|
indexeddb/indexeddb.go
|
WithKeyRange
|
func (p RequestDataParams) WithKeyRange(keyRange *KeyRange) *RequestDataParams {
p.KeyRange = keyRange
return &p
}
|
go
|
func (p RequestDataParams) WithKeyRange(keyRange *KeyRange) *RequestDataParams {
p.KeyRange = keyRange
return &p
}
|
[
"func",
"(",
"p",
"RequestDataParams",
")",
"WithKeyRange",
"(",
"keyRange",
"*",
"KeyRange",
")",
"*",
"RequestDataParams",
"{",
"p",
".",
"KeyRange",
"=",
"keyRange",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithKeyRange key range.
|
[
"WithKeyRange",
"key",
"range",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/indexeddb/indexeddb.go#L164-L167
|
test
|
chromedp/cdproto
|
profiler/profiler.go
|
Do
|
func (p *SetSamplingIntervalParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetSamplingInterval, p, nil)
}
|
go
|
func (p *SetSamplingIntervalParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetSamplingInterval, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetSamplingIntervalParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetSamplingInterval",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Profiler.setSamplingInterval against the provided context.
|
[
"Do",
"executes",
"Profiler",
".",
"setSamplingInterval",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L97-L99
|
test
|
chromedp/cdproto
|
profiler/profiler.go
|
Do
|
func (p *StartParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStart, nil, nil)
}
|
go
|
func (p *StartParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStart, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"StartParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStart",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Profiler.start against the provided context.
|
[
"Do",
"executes",
"Profiler",
".",
"start",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L112-L114
|
test
|
chromedp/cdproto
|
profiler/profiler.go
|
WithCallCount
|
func (p StartPreciseCoverageParams) WithCallCount(callCount bool) *StartPreciseCoverageParams {
p.CallCount = callCount
return &p
}
|
go
|
func (p StartPreciseCoverageParams) WithCallCount(callCount bool) *StartPreciseCoverageParams {
p.CallCount = callCount
return &p
}
|
[
"func",
"(",
"p",
"StartPreciseCoverageParams",
")",
"WithCallCount",
"(",
"callCount",
"bool",
")",
"*",
"StartPreciseCoverageParams",
"{",
"p",
".",
"CallCount",
"=",
"callCount",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithCallCount collect accurate call counts beyond simple 'covered' or 'not
// covered'.
|
[
"WithCallCount",
"collect",
"accurate",
"call",
"counts",
"beyond",
"simple",
"covered",
"or",
"not",
"covered",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L137-L140
|
test
|
chromedp/cdproto
|
profiler/profiler.go
|
WithDetailed
|
func (p StartPreciseCoverageParams) WithDetailed(detailed bool) *StartPreciseCoverageParams {
p.Detailed = detailed
return &p
}
|
go
|
func (p StartPreciseCoverageParams) WithDetailed(detailed bool) *StartPreciseCoverageParams {
p.Detailed = detailed
return &p
}
|
[
"func",
"(",
"p",
"StartPreciseCoverageParams",
")",
"WithDetailed",
"(",
"detailed",
"bool",
")",
"*",
"StartPreciseCoverageParams",
"{",
"p",
".",
"Detailed",
"=",
"detailed",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithDetailed collect block-based coverage.
|
[
"WithDetailed",
"collect",
"block",
"-",
"based",
"coverage",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L143-L146
|
test
|
chromedp/cdproto
|
profiler/profiler.go
|
Do
|
func (p *StartPreciseCoverageParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartPreciseCoverage, p, nil)
}
|
go
|
func (p *StartPreciseCoverageParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartPreciseCoverage, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"StartPreciseCoverageParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStartPreciseCoverage",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Profiler.startPreciseCoverage against the provided context.
|
[
"Do",
"executes",
"Profiler",
".",
"startPreciseCoverage",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L149-L151
|
test
|
chromedp/cdproto
|
profiler/profiler.go
|
Do
|
func (p *StartTypeProfileParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartTypeProfile, nil, nil)
}
|
go
|
func (p *StartTypeProfileParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartTypeProfile, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"StartTypeProfileParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStartTypeProfile",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Profiler.startTypeProfile against the provided context.
|
[
"Do",
"executes",
"Profiler",
".",
"startTypeProfile",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L164-L166
|
test
|
chromedp/cdproto
|
profiler/profiler.go
|
Do
|
func (p *StopPreciseCoverageParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopPreciseCoverage, nil, nil)
}
|
go
|
func (p *StopPreciseCoverageParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopPreciseCoverage, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"StopPreciseCoverageParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStopPreciseCoverage",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Profiler.stopPreciseCoverage against the provided context.
|
[
"Do",
"executes",
"Profiler",
".",
"stopPreciseCoverage",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L212-L214
|
test
|
chromedp/cdproto
|
profiler/profiler.go
|
Do
|
func (p *StopTypeProfileParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopTypeProfile, nil, nil)
}
|
go
|
func (p *StopTypeProfileParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopTypeProfile, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"StopTypeProfileParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStopTypeProfile",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Profiler.stopTypeProfile against the provided context.
|
[
"Do",
"executes",
"Profiler",
".",
"stopTypeProfile",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/profiler/profiler.go#L229-L231
|
test
|
chromedp/cdproto
|
security/security.go
|
Do
|
func (p *SetIgnoreCertificateErrorsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetIgnoreCertificateErrors, p, nil)
}
|
go
|
func (p *SetIgnoreCertificateErrorsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetIgnoreCertificateErrors, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetIgnoreCertificateErrorsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetIgnoreCertificateErrors",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Security.setIgnoreCertificateErrors against the provided context.
|
[
"Do",
"executes",
"Security",
".",
"setIgnoreCertificateErrors",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/security/security.go#L67-L69
|
test
|
chromedp/cdproto
|
heapprofiler/heapprofiler.go
|
Do
|
func (p *AddInspectedHeapObjectParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandAddInspectedHeapObject, p, nil)
}
|
go
|
func (p *AddInspectedHeapObjectParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandAddInspectedHeapObject, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"AddInspectedHeapObjectParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandAddInspectedHeapObject",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes HeapProfiler.addInspectedHeapObject against the provided context.
|
[
"Do",
"executes",
"HeapProfiler",
".",
"addInspectedHeapObject",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L36-L38
|
test
|
chromedp/cdproto
|
heapprofiler/heapprofiler.go
|
Do
|
func (p *CollectGarbageParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandCollectGarbage, nil, nil)
}
|
go
|
func (p *CollectGarbageParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandCollectGarbage, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"CollectGarbageParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandCollectGarbage",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes HeapProfiler.collectGarbage against the provided context.
|
[
"Do",
"executes",
"HeapProfiler",
".",
"collectGarbage",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L51-L53
|
test
|
chromedp/cdproto
|
heapprofiler/heapprofiler.go
|
WithSamplingInterval
|
func (p StartSamplingParams) WithSamplingInterval(samplingInterval float64) *StartSamplingParams {
p.SamplingInterval = samplingInterval
return &p
}
|
go
|
func (p StartSamplingParams) WithSamplingInterval(samplingInterval float64) *StartSamplingParams {
p.SamplingInterval = samplingInterval
return &p
}
|
[
"func",
"(",
"p",
"StartSamplingParams",
")",
"WithSamplingInterval",
"(",
"samplingInterval",
"float64",
")",
"*",
"StartSamplingParams",
"{",
"p",
".",
"SamplingInterval",
"=",
"samplingInterval",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithSamplingInterval average sample interval in bytes. Poisson
// distribution is used for the intervals. The default value is 32768 bytes.
|
[
"WithSamplingInterval",
"average",
"sample",
"interval",
"in",
"bytes",
".",
"Poisson",
"distribution",
"is",
"used",
"for",
"the",
"intervals",
".",
"The",
"default",
"value",
"is",
"32768",
"bytes",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L213-L216
|
test
|
chromedp/cdproto
|
heapprofiler/heapprofiler.go
|
Do
|
func (p *StartTrackingHeapObjectsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartTrackingHeapObjects, p, nil)
}
|
go
|
func (p *StartTrackingHeapObjectsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartTrackingHeapObjects, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"StartTrackingHeapObjectsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStartTrackingHeapObjects",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes HeapProfiler.startTrackingHeapObjects against the provided context.
|
[
"Do",
"executes",
"HeapProfiler",
".",
"startTrackingHeapObjects",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L244-L246
|
test
|
chromedp/cdproto
|
heapprofiler/heapprofiler.go
|
WithReportProgress
|
func (p StopTrackingHeapObjectsParams) WithReportProgress(reportProgress bool) *StopTrackingHeapObjectsParams {
p.ReportProgress = reportProgress
return &p
}
|
go
|
func (p StopTrackingHeapObjectsParams) WithReportProgress(reportProgress bool) *StopTrackingHeapObjectsParams {
p.ReportProgress = reportProgress
return &p
}
|
[
"func",
"(",
"p",
"StopTrackingHeapObjectsParams",
")",
"WithReportProgress",
"(",
"reportProgress",
"bool",
")",
"*",
"StopTrackingHeapObjectsParams",
"{",
"p",
".",
"ReportProgress",
"=",
"reportProgress",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithReportProgress if true 'reportHeapSnapshotProgress' events will be
// generated while snapshot is being taken when the tracking is stopped.
|
[
"WithReportProgress",
"if",
"true",
"reportHeapSnapshotProgress",
"events",
"will",
"be",
"generated",
"while",
"snapshot",
"is",
"being",
"taken",
"when",
"the",
"tracking",
"is",
"stopped",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L294-L297
|
test
|
chromedp/cdproto
|
heapprofiler/heapprofiler.go
|
Do
|
func (p *StopTrackingHeapObjectsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopTrackingHeapObjects, p, nil)
}
|
go
|
func (p *StopTrackingHeapObjectsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStopTrackingHeapObjects, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"StopTrackingHeapObjectsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStopTrackingHeapObjects",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes HeapProfiler.stopTrackingHeapObjects against the provided context.
|
[
"Do",
"executes",
"HeapProfiler",
".",
"stopTrackingHeapObjects",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L300-L302
|
test
|
chromedp/cdproto
|
heapprofiler/heapprofiler.go
|
WithReportProgress
|
func (p TakeHeapSnapshotParams) WithReportProgress(reportProgress bool) *TakeHeapSnapshotParams {
p.ReportProgress = reportProgress
return &p
}
|
go
|
func (p TakeHeapSnapshotParams) WithReportProgress(reportProgress bool) *TakeHeapSnapshotParams {
p.ReportProgress = reportProgress
return &p
}
|
[
"func",
"(",
"p",
"TakeHeapSnapshotParams",
")",
"WithReportProgress",
"(",
"reportProgress",
"bool",
")",
"*",
"TakeHeapSnapshotParams",
"{",
"p",
".",
"ReportProgress",
"=",
"reportProgress",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithReportProgress if true 'reportHeapSnapshotProgress' events will be
// generated while snapshot is being taken.
|
[
"WithReportProgress",
"if",
"true",
"reportHeapSnapshotProgress",
"events",
"will",
"be",
"generated",
"while",
"snapshot",
"is",
"being",
"taken",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L320-L323
|
test
|
chromedp/cdproto
|
heapprofiler/heapprofiler.go
|
Do
|
func (p *TakeHeapSnapshotParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandTakeHeapSnapshot, p, nil)
}
|
go
|
func (p *TakeHeapSnapshotParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandTakeHeapSnapshot, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"TakeHeapSnapshotParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandTakeHeapSnapshot",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes HeapProfiler.takeHeapSnapshot against the provided context.
|
[
"Do",
"executes",
"HeapProfiler",
".",
"takeHeapSnapshot",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/heapprofiler/heapprofiler.go#L326-L328
|
test
|
chromedp/cdproto
|
browser/browser.go
|
WithBrowserContextID
|
func (p GrantPermissionsParams) WithBrowserContextID(browserContextID target.BrowserContextID) *GrantPermissionsParams {
p.BrowserContextID = browserContextID
return &p
}
|
go
|
func (p GrantPermissionsParams) WithBrowserContextID(browserContextID target.BrowserContextID) *GrantPermissionsParams {
p.BrowserContextID = browserContextID
return &p
}
|
[
"func",
"(",
"p",
"GrantPermissionsParams",
")",
"WithBrowserContextID",
"(",
"browserContextID",
"target",
".",
"BrowserContextID",
")",
"*",
"GrantPermissionsParams",
"{",
"p",
".",
"BrowserContextID",
"=",
"browserContextID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithBrowserContextID browserContext to override permissions. When omitted,
// default browser context is used.
|
[
"WithBrowserContextID",
"browserContext",
"to",
"override",
"permissions",
".",
"When",
"omitted",
"default",
"browser",
"context",
"is",
"used",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L43-L46
|
test
|
chromedp/cdproto
|
browser/browser.go
|
Do
|
func (p *GrantPermissionsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandGrantPermissions, p, nil)
}
|
go
|
func (p *GrantPermissionsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandGrantPermissions, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"GrantPermissionsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandGrantPermissions",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Browser.grantPermissions against the provided context.
|
[
"Do",
"executes",
"Browser",
".",
"grantPermissions",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L49-L51
|
test
|
chromedp/cdproto
|
browser/browser.go
|
WithBrowserContextID
|
func (p ResetPermissionsParams) WithBrowserContextID(browserContextID target.BrowserContextID) *ResetPermissionsParams {
p.BrowserContextID = browserContextID
return &p
}
|
go
|
func (p ResetPermissionsParams) WithBrowserContextID(browserContextID target.BrowserContextID) *ResetPermissionsParams {
p.BrowserContextID = browserContextID
return &p
}
|
[
"func",
"(",
"p",
"ResetPermissionsParams",
")",
"WithBrowserContextID",
"(",
"browserContextID",
"target",
".",
"BrowserContextID",
")",
"*",
"ResetPermissionsParams",
"{",
"p",
".",
"BrowserContextID",
"=",
"browserContextID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithBrowserContextID browserContext to reset permissions. When omitted,
// default browser context is used.
|
[
"WithBrowserContextID",
"browserContext",
"to",
"reset",
"permissions",
".",
"When",
"omitted",
"default",
"browser",
"context",
"is",
"used",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L69-L72
|
test
|
chromedp/cdproto
|
browser/browser.go
|
Do
|
func (p *ResetPermissionsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandResetPermissions, p, nil)
}
|
go
|
func (p *ResetPermissionsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandResetPermissions, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"ResetPermissionsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandResetPermissions",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Browser.resetPermissions against the provided context.
|
[
"Do",
"executes",
"Browser",
".",
"resetPermissions",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L75-L77
|
test
|
chromedp/cdproto
|
browser/browser.go
|
Do
|
func (p *CrashParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandCrash, nil, nil)
}
|
go
|
func (p *CrashParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandCrash, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"CrashParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandCrash",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Browser.crash against the provided context.
|
[
"Do",
"executes",
"Browser",
".",
"crash",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L105-L107
|
test
|
chromedp/cdproto
|
browser/browser.go
|
Do
|
func (p *CrashGpuProcessParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandCrashGpuProcess, nil, nil)
}
|
go
|
func (p *CrashGpuProcessParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandCrashGpuProcess, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"CrashGpuProcessParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandCrashGpuProcess",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Browser.crashGpuProcess against the provided context.
|
[
"Do",
"executes",
"Browser",
".",
"crashGpuProcess",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L120-L122
|
test
|
chromedp/cdproto
|
browser/browser.go
|
WithQuery
|
func (p GetHistogramsParams) WithQuery(query string) *GetHistogramsParams {
p.Query = query
return &p
}
|
go
|
func (p GetHistogramsParams) WithQuery(query string) *GetHistogramsParams {
p.Query = query
return &p
}
|
[
"func",
"(",
"p",
"GetHistogramsParams",
")",
"WithQuery",
"(",
"query",
"string",
")",
"*",
"GetHistogramsParams",
"{",
"p",
".",
"Query",
"=",
"query",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithQuery requested substring in name. Only histograms which have query as
// a substring in their name are extracted. An empty or absent query returns all
// histograms.
|
[
"WithQuery",
"requested",
"substring",
"in",
"name",
".",
"Only",
"histograms",
"which",
"have",
"query",
"as",
"a",
"substring",
"in",
"their",
"name",
"are",
"extracted",
".",
"An",
"empty",
"or",
"absent",
"query",
"returns",
"all",
"histograms",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L212-L215
|
test
|
chromedp/cdproto
|
browser/browser.go
|
WithTargetID
|
func (p GetWindowForTargetParams) WithTargetID(targetID target.ID) *GetWindowForTargetParams {
p.TargetID = targetID
return &p
}
|
go
|
func (p GetWindowForTargetParams) WithTargetID(targetID target.ID) *GetWindowForTargetParams {
p.TargetID = targetID
return &p
}
|
[
"func",
"(",
"p",
"GetWindowForTargetParams",
")",
"WithTargetID",
"(",
"targetID",
"target",
".",
"ID",
")",
"*",
"GetWindowForTargetParams",
"{",
"p",
".",
"TargetID",
"=",
"targetID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithTargetID devtools agent host id. If called as a part of the session,
// associated targetId is used.
|
[
"WithTargetID",
"devtools",
"agent",
"host",
"id",
".",
"If",
"called",
"as",
"a",
"part",
"of",
"the",
"session",
"associated",
"targetId",
"is",
"used",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L342-L345
|
test
|
chromedp/cdproto
|
browser/browser.go
|
Do
|
func (p *SetWindowBoundsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetWindowBounds, p, nil)
}
|
go
|
func (p *SetWindowBoundsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetWindowBounds, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetWindowBoundsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetWindowBounds",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Browser.setWindowBounds against the provided context.
|
[
"Do",
"executes",
"Browser",
".",
"setWindowBounds",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L390-L392
|
test
|
chromedp/cdproto
|
browser/browser.go
|
WithImage
|
func (p SetDockTileParams) WithImage(image string) *SetDockTileParams {
p.Image = image
return &p
}
|
go
|
func (p SetDockTileParams) WithImage(image string) *SetDockTileParams {
p.Image = image
return &p
}
|
[
"func",
"(",
"p",
"SetDockTileParams",
")",
"WithImage",
"(",
"image",
"string",
")",
"*",
"SetDockTileParams",
"{",
"p",
".",
"Image",
"=",
"image",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithImage png encoded image.
|
[
"WithImage",
"png",
"encoded",
"image",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L416-L419
|
test
|
chromedp/cdproto
|
browser/browser.go
|
Do
|
func (p *SetDockTileParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetDockTile, p, nil)
}
|
go
|
func (p *SetDockTileParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetDockTile, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetDockTileParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetDockTile",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Browser.setDockTile against the provided context.
|
[
"Do",
"executes",
"Browser",
".",
"setDockTile",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/browser/browser.go#L422-L424
|
test
|
chromedp/cdproto
|
cachestorage/cachestorage.go
|
Do
|
func (p *DeleteCacheParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDeleteCache, p, nil)
}
|
go
|
func (p *DeleteCacheParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDeleteCache, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"DeleteCacheParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandDeleteCache",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes CacheStorage.deleteCache against the provided context.
|
[
"Do",
"executes",
"CacheStorage",
".",
"deleteCache",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cachestorage/cachestorage.go#L33-L35
|
test
|
chromedp/cdproto
|
cachestorage/cachestorage.go
|
Do
|
func (p *DeleteEntryParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDeleteEntry, p, nil)
}
|
go
|
func (p *DeleteEntryParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDeleteEntry, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"DeleteEntryParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandDeleteEntry",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes CacheStorage.deleteEntry against the provided context.
|
[
"Do",
"executes",
"CacheStorage",
".",
"deleteEntry",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cachestorage/cachestorage.go#L58-L60
|
test
|
chromedp/cdproto
|
cachestorage/cachestorage.go
|
WithPathFilter
|
func (p RequestEntriesParams) WithPathFilter(pathFilter string) *RequestEntriesParams {
p.PathFilter = pathFilter
return &p
}
|
go
|
func (p RequestEntriesParams) WithPathFilter(pathFilter string) *RequestEntriesParams {
p.PathFilter = pathFilter
return &p
}
|
[
"func",
"(",
"p",
"RequestEntriesParams",
")",
"WithPathFilter",
"(",
"pathFilter",
"string",
")",
"*",
"RequestEntriesParams",
"{",
"p",
".",
"PathFilter",
"=",
"pathFilter",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithPathFilter if present, only return the entries containing this
// substring in the path.
|
[
"WithPathFilter",
"if",
"present",
"only",
"return",
"the",
"entries",
"containing",
"this",
"substring",
"in",
"the",
"path",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/cachestorage/cachestorage.go#L168-L171
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *DiscardSearchResultsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDiscardSearchResults, p, nil)
}
|
go
|
func (p *DiscardSearchResultsParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandDiscardSearchResults, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"DiscardSearchResultsParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandDiscardSearchResults",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.discardSearchResults against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"discardSearchResults",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L223-L225
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *FocusParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandFocus, p, nil)
}
|
go
|
func (p *FocusParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandFocus, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"FocusParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandFocus",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.focus against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"focus",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L277-L279
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *MarkUndoableStateParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandMarkUndoableState, nil, nil)
}
|
go
|
func (p *MarkUndoableStateParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandMarkUndoableState, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"MarkUndoableStateParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandMarkUndoableState",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.markUndoableState against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"markUndoableState",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L733-L735
|
test
|
chromedp/cdproto
|
dom/dom.go
|
WithIncludeUserAgentShadowDOM
|
func (p PerformSearchParams) WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *PerformSearchParams {
p.IncludeUserAgentShadowDOM = includeUserAgentShadowDOM
return &p
}
|
go
|
func (p PerformSearchParams) WithIncludeUserAgentShadowDOM(includeUserAgentShadowDOM bool) *PerformSearchParams {
p.IncludeUserAgentShadowDOM = includeUserAgentShadowDOM
return &p
}
|
[
"func",
"(",
"p",
"PerformSearchParams",
")",
"WithIncludeUserAgentShadowDOM",
"(",
"includeUserAgentShadowDOM",
"bool",
")",
"*",
"PerformSearchParams",
"{",
"p",
".",
"IncludeUserAgentShadowDOM",
"=",
"includeUserAgentShadowDOM",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithIncludeUserAgentShadowDOM true to search in user agent shadow DOM.
|
[
"WithIncludeUserAgentShadowDOM",
"true",
"to",
"search",
"in",
"user",
"agent",
"shadow",
"DOM",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L810-L813
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *RedoParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandRedo, nil, nil)
}
|
go
|
func (p *RedoParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandRedo, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"RedoParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandRedo",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.redo against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"redo",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1006-L1008
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *RemoveAttributeParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandRemoveAttribute, p, nil)
}
|
go
|
func (p *RemoveAttributeParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandRemoveAttribute, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"RemoveAttributeParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandRemoveAttribute",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.removeAttribute against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"removeAttribute",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1033-L1035
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *RemoveNodeParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandRemoveNode, p, nil)
}
|
go
|
func (p *RemoveNodeParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandRemoveNode, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"RemoveNodeParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandRemoveNode",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.removeNode against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"removeNode",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1055-L1057
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *RequestChildNodesParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandRequestChildNodes, p, nil)
}
|
go
|
func (p *RequestChildNodesParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandRequestChildNodes, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"RequestChildNodesParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandRequestChildNodes",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.requestChildNodes against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"requestChildNodes",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1100-L1102
|
test
|
chromedp/cdproto
|
dom/dom.go
|
WithNodeID
|
func (p ResolveNodeParams) WithNodeID(nodeID cdp.NodeID) *ResolveNodeParams {
p.NodeID = nodeID
return &p
}
|
go
|
func (p ResolveNodeParams) WithNodeID(nodeID cdp.NodeID) *ResolveNodeParams {
p.NodeID = nodeID
return &p
}
|
[
"func",
"(",
"p",
"ResolveNodeParams",
")",
"WithNodeID",
"(",
"nodeID",
"cdp",
".",
"NodeID",
")",
"*",
"ResolveNodeParams",
"{",
"p",
".",
"NodeID",
"=",
"nodeID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithNodeID ID of the node to resolve.
|
[
"WithNodeID",
"ID",
"of",
"the",
"node",
"to",
"resolve",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1167-L1170
|
test
|
chromedp/cdproto
|
dom/dom.go
|
WithBackendNodeID
|
func (p ResolveNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *ResolveNodeParams {
p.BackendNodeID = backendNodeID
return &p
}
|
go
|
func (p ResolveNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *ResolveNodeParams {
p.BackendNodeID = backendNodeID
return &p
}
|
[
"func",
"(",
"p",
"ResolveNodeParams",
")",
"WithBackendNodeID",
"(",
"backendNodeID",
"cdp",
".",
"BackendNodeID",
")",
"*",
"ResolveNodeParams",
"{",
"p",
".",
"BackendNodeID",
"=",
"backendNodeID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithBackendNodeID backend identifier of the node to resolve.
|
[
"WithBackendNodeID",
"backend",
"identifier",
"of",
"the",
"node",
"to",
"resolve",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1173-L1176
|
test
|
chromedp/cdproto
|
dom/dom.go
|
WithExecutionContextID
|
func (p ResolveNodeParams) WithExecutionContextID(executionContextID runtime.ExecutionContextID) *ResolveNodeParams {
p.ExecutionContextID = executionContextID
return &p
}
|
go
|
func (p ResolveNodeParams) WithExecutionContextID(executionContextID runtime.ExecutionContextID) *ResolveNodeParams {
p.ExecutionContextID = executionContextID
return &p
}
|
[
"func",
"(",
"p",
"ResolveNodeParams",
")",
"WithExecutionContextID",
"(",
"executionContextID",
"runtime",
".",
"ExecutionContextID",
")",
"*",
"ResolveNodeParams",
"{",
"p",
".",
"ExecutionContextID",
"=",
"executionContextID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithExecutionContextID execution context in which to resolve the node.
|
[
"WithExecutionContextID",
"execution",
"context",
"in",
"which",
"to",
"resolve",
"the",
"node",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1186-L1189
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *SetAttributeValueParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetAttributeValue, p, nil)
}
|
go
|
func (p *SetAttributeValueParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetAttributeValue, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetAttributeValueParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetAttributeValue",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.setAttributeValue against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"setAttributeValue",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1235-L1237
|
test
|
chromedp/cdproto
|
dom/dom.go
|
WithName
|
func (p SetAttributesAsTextParams) WithName(name string) *SetAttributesAsTextParams {
p.Name = name
return &p
}
|
go
|
func (p SetAttributesAsTextParams) WithName(name string) *SetAttributesAsTextParams {
p.Name = name
return &p
}
|
[
"func",
"(",
"p",
"SetAttributesAsTextParams",
")",
"WithName",
"(",
"name",
"string",
")",
"*",
"SetAttributesAsTextParams",
"{",
"p",
".",
"Name",
"=",
"name",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithName attribute name to replace with new attributes derived from text
// in case text parsed successfully.
|
[
"WithName",
"attribute",
"name",
"to",
"replace",
"with",
"new",
"attributes",
"derived",
"from",
"text",
"in",
"case",
"text",
"parsed",
"successfully",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1266-L1269
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *SetAttributesAsTextParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetAttributesAsText, p, nil)
}
|
go
|
func (p *SetAttributesAsTextParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetAttributesAsText, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetAttributesAsTextParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetAttributesAsText",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.setAttributesAsText against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"setAttributesAsText",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1272-L1274
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *SetFileInputFilesParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetFileInputFiles, p, nil)
}
|
go
|
func (p *SetFileInputFilesParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetFileInputFiles, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetFileInputFilesParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetFileInputFiles",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.setFileInputFiles against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"setFileInputFiles",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1315-L1317
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *SetInspectedNodeParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetInspectedNode, p, nil)
}
|
go
|
func (p *SetInspectedNodeParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetInspectedNode, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetInspectedNodeParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetInspectedNode",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.setInspectedNode against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"setInspectedNode",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1376-L1378
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *SetNodeValueParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetNodeValue, p, nil)
}
|
go
|
func (p *SetNodeValueParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetNodeValue, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetNodeValueParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetNodeValue",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.setNodeValue against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"setNodeValue",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1441-L1443
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *SetOuterHTMLParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetOuterHTML, p, nil)
}
|
go
|
func (p *SetOuterHTMLParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetOuterHTML, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetOuterHTMLParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetOuterHTML",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.setOuterHTML against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"setOuterHTML",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1466-L1468
|
test
|
chromedp/cdproto
|
dom/dom.go
|
Do
|
func (p *UndoParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUndo, nil, nil)
}
|
go
|
func (p *UndoParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUndo, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"UndoParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandUndo",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes DOM.undo against the provided context.
|
[
"Do",
"executes",
"DOM",
".",
"undo",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/dom/dom.go#L1481-L1483
|
test
|
chromedp/cdproto
|
css/css.go
|
Do
|
func (p *ForcePseudoStateParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandForcePseudoState, p, nil)
}
|
go
|
func (p *ForcePseudoStateParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandForcePseudoState, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"ForcePseudoStateParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandForcePseudoState",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes CSS.forcePseudoState against the provided context.
|
[
"Do",
"executes",
"CSS",
".",
"forcePseudoState",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/css/css.go#L202-L204
|
test
|
chromedp/cdproto
|
css/css.go
|
Do
|
func (p *SetEffectivePropertyValueForNodeParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetEffectivePropertyValueForNode, p, nil)
}
|
go
|
func (p *SetEffectivePropertyValueForNodeParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandSetEffectivePropertyValueForNode, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"SetEffectivePropertyValueForNodeParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandSetEffectivePropertyValueForNode",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes CSS.setEffectivePropertyValueForNode against the provided context.
|
[
"Do",
"executes",
"CSS",
".",
"setEffectivePropertyValueForNode",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/css/css.go#L512-L514
|
test
|
chromedp/cdproto
|
css/css.go
|
Do
|
func (p *StartRuleUsageTrackingParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartRuleUsageTracking, nil, nil)
}
|
go
|
func (p *StartRuleUsageTrackingParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandStartRuleUsageTracking, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"StartRuleUsageTrackingParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandStartRuleUsageTracking",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes CSS.startRuleUsageTracking against the provided context.
|
[
"Do",
"executes",
"CSS",
".",
"startRuleUsageTracking",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/css/css.go#L735-L737
|
test
|
chromedp/cdproto
|
io/io.go
|
Do
|
func (p *CloseParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandClose, p, nil)
}
|
go
|
func (p *CloseParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandClose, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"CloseParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandClose",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes IO.close against the provided context.
|
[
"Do",
"executes",
"IO",
".",
"close",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/io/io.go#L36-L38
|
test
|
chromedp/cdproto
|
storage/storage.go
|
Do
|
func (p *ClearDataForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandClearDataForOrigin, p, nil)
}
|
go
|
func (p *ClearDataForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandClearDataForOrigin, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"ClearDataForOriginParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandClearDataForOrigin",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Storage.clearDataForOrigin against the provided context.
|
[
"Do",
"executes",
"Storage",
".",
"clearDataForOrigin",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L36-L38
|
test
|
chromedp/cdproto
|
storage/storage.go
|
Do
|
func (p *TrackCacheStorageForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandTrackCacheStorageForOrigin, p, nil)
}
|
go
|
func (p *TrackCacheStorageForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandTrackCacheStorageForOrigin, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"TrackCacheStorageForOriginParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandTrackCacheStorageForOrigin",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Storage.trackCacheStorageForOrigin against the provided context.
|
[
"Do",
"executes",
"Storage",
".",
"trackCacheStorageForOrigin",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L101-L103
|
test
|
chromedp/cdproto
|
storage/storage.go
|
Do
|
func (p *TrackIndexedDBForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandTrackIndexedDBForOrigin, p, nil)
}
|
go
|
func (p *TrackIndexedDBForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandTrackIndexedDBForOrigin, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"TrackIndexedDBForOriginParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandTrackIndexedDBForOrigin",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Storage.trackIndexedDBForOrigin against the provided context.
|
[
"Do",
"executes",
"Storage",
".",
"trackIndexedDBForOrigin",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L125-L127
|
test
|
chromedp/cdproto
|
storage/storage.go
|
Do
|
func (p *UntrackCacheStorageForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUntrackCacheStorageForOrigin, p, nil)
}
|
go
|
func (p *UntrackCacheStorageForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUntrackCacheStorageForOrigin, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"UntrackCacheStorageForOriginParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandUntrackCacheStorageForOrigin",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Storage.untrackCacheStorageForOrigin against the provided context.
|
[
"Do",
"executes",
"Storage",
".",
"untrackCacheStorageForOrigin",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L149-L151
|
test
|
chromedp/cdproto
|
storage/storage.go
|
Do
|
func (p *UntrackIndexedDBForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUntrackIndexedDBForOrigin, p, nil)
}
|
go
|
func (p *UntrackIndexedDBForOriginParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandUntrackIndexedDBForOrigin, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"UntrackIndexedDBForOriginParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandUntrackIndexedDBForOrigin",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Storage.untrackIndexedDBForOrigin against the provided context.
|
[
"Do",
"executes",
"Storage",
".",
"untrackIndexedDBForOrigin",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/storage/storage.go#L173-L175
|
test
|
chromedp/cdproto
|
overlay/overlay.go
|
Do
|
func (p *HideHighlightParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandHideHighlight, nil, nil)
}
|
go
|
func (p *HideHighlightParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandHideHighlight, nil, nil)
}
|
[
"func",
"(",
"p",
"*",
"HideHighlightParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandHideHighlight",
",",
"nil",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Overlay.hideHighlight against the provided context.
|
[
"Do",
"executes",
"Overlay",
".",
"hideHighlight",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L99-L101
|
test
|
chromedp/cdproto
|
overlay/overlay.go
|
Do
|
func (p *HighlightFrameParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandHighlightFrame, p, nil)
}
|
go
|
func (p *HighlightFrameParams) Do(ctx context.Context) (err error) {
return cdp.Execute(ctx, CommandHighlightFrame, p, nil)
}
|
[
"func",
"(",
"p",
"*",
"HighlightFrameParams",
")",
"Do",
"(",
"ctx",
"context",
".",
"Context",
")",
"(",
"err",
"error",
")",
"{",
"return",
"cdp",
".",
"Execute",
"(",
"ctx",
",",
"CommandHighlightFrame",
",",
"p",
",",
"nil",
")",
"\n",
"}"
] |
// Do executes Overlay.highlightFrame against the provided context.
|
[
"Do",
"executes",
"Overlay",
".",
"highlightFrame",
"against",
"the",
"provided",
"context",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L137-L139
|
test
|
chromedp/cdproto
|
overlay/overlay.go
|
WithNodeID
|
func (p HighlightNodeParams) WithNodeID(nodeID cdp.NodeID) *HighlightNodeParams {
p.NodeID = nodeID
return &p
}
|
go
|
func (p HighlightNodeParams) WithNodeID(nodeID cdp.NodeID) *HighlightNodeParams {
p.NodeID = nodeID
return &p
}
|
[
"func",
"(",
"p",
"HighlightNodeParams",
")",
"WithNodeID",
"(",
"nodeID",
"cdp",
".",
"NodeID",
")",
"*",
"HighlightNodeParams",
"{",
"p",
".",
"NodeID",
"=",
"nodeID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithNodeID identifier of the node to highlight.
|
[
"WithNodeID",
"identifier",
"of",
"the",
"node",
"to",
"highlight",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L165-L168
|
test
|
chromedp/cdproto
|
overlay/overlay.go
|
WithBackendNodeID
|
func (p HighlightNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *HighlightNodeParams {
p.BackendNodeID = backendNodeID
return &p
}
|
go
|
func (p HighlightNodeParams) WithBackendNodeID(backendNodeID cdp.BackendNodeID) *HighlightNodeParams {
p.BackendNodeID = backendNodeID
return &p
}
|
[
"func",
"(",
"p",
"HighlightNodeParams",
")",
"WithBackendNodeID",
"(",
"backendNodeID",
"cdp",
".",
"BackendNodeID",
")",
"*",
"HighlightNodeParams",
"{",
"p",
".",
"BackendNodeID",
"=",
"backendNodeID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithBackendNodeID identifier of the backend node to highlight.
|
[
"WithBackendNodeID",
"identifier",
"of",
"the",
"backend",
"node",
"to",
"highlight",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L171-L174
|
test
|
chromedp/cdproto
|
overlay/overlay.go
|
WithObjectID
|
func (p HighlightNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightNodeParams {
p.ObjectID = objectID
return &p
}
|
go
|
func (p HighlightNodeParams) WithObjectID(objectID runtime.RemoteObjectID) *HighlightNodeParams {
p.ObjectID = objectID
return &p
}
|
[
"func",
"(",
"p",
"HighlightNodeParams",
")",
"WithObjectID",
"(",
"objectID",
"runtime",
".",
"RemoteObjectID",
")",
"*",
"HighlightNodeParams",
"{",
"p",
".",
"ObjectID",
"=",
"objectID",
"\n",
"return",
"&",
"p",
"\n",
"}"
] |
// WithObjectID JavaScript object id of the node to be highlighted.
|
[
"WithObjectID",
"JavaScript",
"object",
"id",
"of",
"the",
"node",
"to",
"be",
"highlighted",
"."
] |
d40c70bcdf242660a32f2eadf323662dd75378b5
|
https://github.com/chromedp/cdproto/blob/d40c70bcdf242660a32f2eadf323662dd75378b5/overlay/overlay.go#L177-L180
|
test
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.