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

Method close

py/selenium/webdriver/remote/webdriver.py:633–635  ·  view source on GitHub ↗

Closes the current window.

(self)

Source from the content-addressed store, hash-verified

631 return self.execute(Command.GET_PAGE_SOURCE)["value"]
632
633 def close(self) -> None:
634 """Closes the current window."""
635 self.execute(Command.CLOSE)
636
637 def quit(self) -> None:
638 """Quits the driver and closes every associated window."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected