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

Method close

py/selenium/webdriver/remote/webdriver.py:711–713  ·  view source on GitHub ↗

Closes the current window.

(self)

Source from the content-addressed store, hash-verified

709 return self.execute(Command.GET_PAGE_SOURCE)["value"]
710
711 def close(self) -> None:
712 """Closes the current window."""
713 self.execute(Command.CLOSE)
714
715 def quit(self) -> None:
716 """Quits the driver and closes every associated window."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected