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

Method page_source

py/selenium/webdriver/remote/webdriver.py:629–631  ·  view source on GitHub ↗

Gets the source of the current page.

(self)

Source from the content-addressed store, hash-verified

627
628 @property
629 def page_source(self) -> str:
630 """Gets the source of the current page."""
631 return self.execute(Command.GET_PAGE_SOURCE)["value"]
632
633 def close(self) -> None:
634 """Closes the current window."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected