MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / default_content

Method default_content

py/selenium/webdriver/remote/switch_to.py:60–66  ·  view source on GitHub ↗

Switch focus to the default frame. Example: driver.switch_to.default_content()

(self)

Source from the content-addressed store, hash-verified

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.

Calls 1

executeMethod · 0.65