MCPcopy
hub / github.com/microsoft/playwright / evaluate

Method evaluate

packages/playwright-core/src/server/javascript.ts:166–168  ·  view source on GitHub ↗
(pageFunction: FuncOn<T, Arg, R>, arg?: Arg)

Source from the content-addressed store, hash-verified

164 }
165
166 async evaluate<R, Arg>(pageFunction: FuncOn<T, Arg, R>, arg?: Arg): Promise<R> {
167 return evaluate(this._context, true /* returnByValue */, pageFunction, this, arg);
168 }
169
170 async evaluateHandle<R, Arg>(pageFunction: FuncOn<T, Arg, R>, arg?: Arg): Promise<SmartHandle<R>> {
171 return evaluate(this._context, false /* returnByValue */, pageFunction, this, arg);

Callers

nothing calls this directly

Calls 1

evaluateFunction · 0.85

Tested by

no test coverage detected