INNER CODE UNIT · Python

page

feder-cr/invisible_playwright · src/invisible_playwright/_juggler/server.py:233

    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

    def op_bounding_box(self, params: Dict) -> Any:
        return {"value": self.injected.bounding_box(
            self.frame.frame_id, self.object_id)}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…