INNER CODE UNIT · Python
injected
feder-cr/invisible_playwright · src/invisible_playwright/_juggler/server.py:228
def injected(self) -> "InjectedScript":
return self.page.injected
@property
def page(self) -> "PageDispatcher":
return self.frame.page
def op_dispose(self, params: Dict) -> Any:
try:
self.injected.dispose(self.frame.frame_id, self.object_id)
except Exception:
# ⛔ A handle whose context is already gone is not an error worth
# raising: the caller is tidying up, and the node it pointed at
# stopped existing on its own.
pass
self.dispose()
return None