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

Method window_handles

py/selenium/webdriver/remote/webdriver.py:738–740  ·  view source on GitHub ↗

Returns the handles of all windows within the current session.

(self)

Source from the content-addressed store, hash-verified

736
737 @property
738 def window_handles(self) -> list[str]:
739 """Returns the handles of all windows within the current session."""
740 return self.execute(Command.W3C_GET_WINDOW_HANDLES)["value"]
741
742 def maximize_window(self) -> None:
743 """Maximizes the current window that webdriver is using."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected