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

Method page_source

py/selenium/webdriver/remote/webdriver.py:640–642  ·  view source on GitHub ↗

Gets the source of the current page.

(self)

Source from the content-addressed store, hash-verified

638
639 @property
640 def page_source(self) -> str:
641 """Gets the source of the current page."""
642 return self.execute(Command.GET_PAGE_SOURCE)["value"]
643
644 def close(self) -> None:
645 """Closes the current window."""

Callers

nothing calls this directly

Calls 1

executeMethod · 0.95

Tested by

no test coverage detected