(
self, action_name: str, ordinal: int = 0, has_subframe: bool = False
)
| 154 | self.page.click(f'.snapshot-tab .tabbed-pane-tab-label:has-text("{name}")') |
| 155 | |
| 156 | def snapshot_frame( |
| 157 | self, action_name: str, ordinal: int = 0, has_subframe: bool = False |
| 158 | ) -> FrameLocator: |
| 159 | self.select_action(action_name, ordinal) |
| 160 | expected_frames = 4 if has_subframe else 3 |
| 161 | while len(self.page.frames) < expected_frames: |
| 162 | self.page.wait_for_event("frameattached") |
| 163 | return self.page.frame_locator("iframe.snapshot-visible[name=snapshot]") |
| 164 | |
| 165 | def show_source_tab(self) -> None: |
| 166 | self.page.click("text='Source'") |
no test coverage detected