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

Method dispatch_event

playwright/_impl/_frame.py:437–457  ·  view source on GitHub ↗
(
        self,
        selector: str,
        type: str,
        eventInit: Dict = None,
        strict: bool = None,
        timeout: float = None,
    )

Source from the content-addressed store, hash-verified

435 )
436
437 async def dispatch_event(
438 self,
439 selector: str,
440 type: str,
441 eventInit: Dict = None,
442 strict: bool = None,
443 timeout: float = None,
444 ) -> None:
445 await self._channel.send(
446 "dispatchEvent",
447 self._timeout,
448 locals_to_params(
449 dict(
450 selector=selector,
451 type=type,
452 eventInit=serialize_argument(eventInit),
453 strict=strict,
454 timeout=timeout,
455 ),
456 ),
457 )
458
459 async def eval_on_selector(
460 self,

Callers

nothing calls this directly

Calls 3

locals_to_paramsFunction · 0.90
serialize_argumentFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected