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

Method page_source

py/selenium/webdriver/remote/webdriver.py:707–709  ·  view source on GitHub ↗

Gets the source of the current page.

(self)

Source from the content-addressed store, hash-verified

705
706 @property
707 def page_source(self) -> str:
708 """Gets the source of the current page."""
709 return self.execute(Command.GET_PAGE_SOURCE)["value"]
710
711 def close(self) -> None:
712 """Closes the current window."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected