(
self, parent: ChannelOwner, type: str, guid: str, initializer: Dict
)
| 1512 | Events = SimpleNamespace(Close="close", Console="console") |
| 1513 | |
| 1514 | def __init__( |
| 1515 | self, parent: ChannelOwner, type: str, guid: str, initializer: Dict |
| 1516 | ) -> None: |
| 1517 | super().__init__(parent, type, guid, initializer) |
| 1518 | self._set_event_to_subscription_mapping({Worker.Events.Console: "console"}) |
| 1519 | self._channel.on("close", lambda _: self._on_close()) |
| 1520 | self._page: Optional[Page] = None |
| 1521 | self._context: Optional["BrowserContext"] = None |
| 1522 | |
| 1523 | def __repr__(self) -> str: |
| 1524 | return f"<Worker url={self.url!r}>" |
nothing calls this directly
no test coverage detected