MCPcopy Create free account
hub / github.com/chromedp/chromedp / EvalWithCommandLineAPI

Function EvalWithCommandLineAPI

eval.go:143–145  ·  view source on GitHub ↗

EvalWithCommandLineAPI is an evaluate option that makes the DevTools Command Line API available to the evaluated script. See [Evaluate] for how evaluate actions work. Note: do not use this with untrusted JavaScript.

(p *runtime.EvaluateParams)

Source from the content-addressed store, hash-verified

141//
142// Note: do not use this with untrusted JavaScript.
143func EvalWithCommandLineAPI(p *runtime.EvaluateParams) {
144 p.IncludeCommandLineAPI = ptr(true)
145}
146
147// EvalIgnoreExceptions is an evaluate option that makes the evaluation ignore
148// exceptions.

Callers

nothing calls this directly

Calls 1

ptrFunction · 0.70

Tested by

no test coverage detected