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

Method close

py/selenium/webdriver/remote/webdriver.py:644–646  ·  view source on GitHub ↗

Closes the current window.

(self)

Source from the content-addressed store, hash-verified

642 return self.execute(Command.GET_PAGE_SOURCE)["value"]
643
644 def close(self) -> None:
645 """Closes the current window."""
646 self.execute(Command.CLOSE)
647
648 def quit(self) -> None:
649 """Quits the driver and closes every associated window."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected