MCPcopy Create free account
hub / github.com/Vinyzu/Botright / expose_function

Method expose_function

botright/playwright_mock/browser.py:269–275  ·  view source on GitHub ↗
(self, name: str, callback: Callable[..., None])

Source from the content-addressed store, hash-verified

267 return self._origin_expect_console_message(predicate=predicate, timeout=timeout)
268
269 async def expose_function(self, name: str, callback: Callable[..., None]) -> None:
270 if self.use_undetected_playwright:
271 from botright.extended_typing import NotSupportedError
272
273 raise NotSupportedError("BrowserContext.expose_function is currently unsupported, due to CDP Runtime Patches.")
274
275 return await self._origin_expose_function(name=name, callback=callback)
276
277 async def expose_binding(self, name: str, callback: Callable[..., None], handle: Optional[bool] = None):
278 if self.use_undetected_playwright:

Callers

nothing calls this directly

Calls 1

NotSupportedErrorClass · 0.90

Tested by

no test coverage detected