MCPcopy Index your code
hub / github.com/microsoft/playwright-python / evaluate

Method evaluate

playwright/_impl/_frame.py:343–353  ·  view source on GitHub ↗
(self, expression: str, arg: Serializable = None)

Source from the content-addressed store, hash-verified

341 return from_channel(await self._channel.send("frameElement", None))
342
343 async def evaluate(self, expression: str, arg: Serializable = None) -> Any:
344 return parse_result(
345 await self._channel.send(
346 "evaluateExpression",
347 None,
348 dict(
349 expression=expression,
350 arg=serialize_argument(arg),
351 ),
352 )
353 )
354
355 async def evaluate_handle(
356 self, expression: str, arg: Serializable = None

Callers

nothing calls this directly

Calls 3

parse_resultFunction · 0.90
serialize_argumentFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected