session_page_source
Return what a WebDriver session is currently showing as markup: the rendered DOM as HTML for a browser session, the native view hierarchy as XML for a mobile session. This is the WHOLE document — it can be very large, so prefer session_find_element when you only need one element, and reach for this when you need to see the structure or search it yourself. Addressed by sessionId; the device-side equivalents are device_page_source and ios_page_source (by udid), which return the on-screen hierarchy without a WebDriver session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session ID |