Constructor. Args: ws: trio_websocket.WebSocketConnection session_id: devtools.target.SessionID target_id: devtools.target.TargetID
(self, ws, session_id, target_id)
| 332 | """ |
| 333 | |
| 334 | def __init__(self, ws, session_id, target_id): |
| 335 | """Constructor. |
| 336 | |
| 337 | Args: |
| 338 | ws: trio_websocket.WebSocketConnection |
| 339 | session_id: devtools.target.SessionID |
| 340 | target_id: devtools.target.TargetID |
| 341 | """ |
| 342 | super().__init__(ws, session_id, target_id) |
| 343 | |
| 344 | self._dom_enable_count = 0 |
| 345 | self._dom_enable_lock = trio.Lock() |
| 346 | self._page_enable_count = 0 |
| 347 | self._page_enable_lock = trio.Lock() |
| 348 | |
| 349 | @asynccontextmanager |
| 350 | async def dom_enable(self): |