Switch focus to the default frame. Example: driver.switch_to.default_content()
(self)
| 58 | return alert |
| 59 | |
| 60 | def default_content(self) -> None: |
| 61 | """Switch focus to the default frame. |
| 62 | |
| 63 | Example: |
| 64 | driver.switch_to.default_content() |
| 65 | """ |
| 66 | self._driver.execute(Command.SWITCH_TO_FRAME, {"id": None}) |
| 67 | |
| 68 | def frame(self, frame_reference: str | int | WebElement) -> None: |
| 69 | """Switch focus to the specified frame by index, name, or element. |