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

Method evaluate

playwright/_impl/_js_handle.py:70–80  ·  view source on GitHub ↗
(self, expression: str, arg: Serializable = None)

Source from the content-addressed store, hash-verified

68 self._preview = preview
69
70 async def evaluate(self, expression: str, arg: Serializable = None) -> Any:
71 return parse_result(
72 await self._channel.send(
73 "evaluateExpression",
74 None,
75 dict(
76 expression=expression,
77 arg=serialize_argument(arg),
78 ),
79 )
80 )
81
82 async def evaluate_handle(
83 self, expression: str, arg: Serializable = None

Callers

nothing calls this directly

Calls 3

parse_resultFunction · 0.85
serialize_argumentFunction · 0.85
sendMethod · 0.45

Tested by

no test coverage detected