(self, frame: Frame, indentation: str = "")
| 25 | await page.evaluate("frame_id => document.getElementById(frame_id).remove()", frame_id) |
| 26 | |
| 27 | def dump_frames(self, frame: Frame, indentation: str = "") -> List[str]: |
| 28 | indentation = indentation or "" |
| 29 | description = re.sub(r":\d+/", ":<PORT>/", frame.url) |
| 30 | if frame.name: |
| 31 | description += " (" + frame.name + ")" |
| 32 | result = [indentation + description] |
| 33 | sorted_frames = sorted(frame.child_frames, key=lambda frame: frame.url + frame.name) |
| 34 | for child in sorted_frames: |
| 35 | result = result + utils.dump_frames(child, " " + indentation) |
| 36 | return result |
| 37 | |
| 38 | async def verify_viewport(self, page: Page, width: int, height: int): |
| 39 | assert cast(ViewportSize, page.viewport_size)["width"] == width |
no outgoing calls