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

Method evaluate

playwright/_impl/_locator.py:189–195  ·  view source on GitHub ↗
(
        self, expression: str, arg: Serializable = None, timeout: float = None
    )

Source from the content-addressed store, hash-verified

187 return await self._frame.dispatch_event(self._selector, strict=True, **params)
188
189 async def evaluate(
190 self, expression: str, arg: Serializable = None, timeout: float = None
191 ) -> Any:
192 return await self._with_element(
193 lambda h, _: h.evaluate(expression, arg),
194 timeout,
195 )
196
197 async def evaluate_all(self, expression: str, arg: Serializable = None) -> Any:
198 params = locals_to_params(locals())

Callers

nothing calls this directly

Calls 1

_with_elementMethod · 0.95

Tested by

no test coverage detected