INNER CODE UNIT · Python
op_scroll_into_view
feder-cr/invisible_playwright · src/invisible_playwright/_juggler/server.py:347
def op_scroll_into_view(self, params: Dict) -> Any:
"""⛔ [B184]: this does not work in the shipped engine, and it does not
work through the Node driver either. It is wired correctly here so the
day the engine is fixed nothing else has to change, and the failure
arrives from the engine rather than from a missing method."""
self.page.send("Page.scrollIntoViewIfNeeded",
_only_set({"frameId": self.frame.frame_id,
"objectId": self.object_id,
"rect": params.get("rect")}))
return None
def op_owner_frame(self, params: Dict) -> Any:
return {"frame": self.frame.channel}
def op_content_frame(self, params: Dict) -> Any:
"""The frame this element CONTAINS, for an iframe.
⛔ Answers null rather than raising when the element is not a frame