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

Method window_handles

py/selenium/webdriver/remote/webdriver.py:660–662  ·  view source on GitHub ↗

Returns the handles of all windows within the current session.

(self)

Source from the content-addressed store, hash-verified

658
659 @property
660 def window_handles(self) -> list[str]:
661 """Returns the handles of all windows within the current session."""
662 return self.execute(Command.W3C_GET_WINDOW_HANDLES)["value"]
663
664 def maximize_window(self) -> None:
665 """Maximizes the current window that webdriver is using."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected