Selenium icon

Selenium

Interact with a Selenium Server via W3C API

Get Page Source

AI-generated

Summary

Fetches the current page source for a Selenium WebDriver session using the Selenium API. Returns the source and session ID in one output item.

Inputs

  • Session ID (required) — ID of the Selenium session whose current page source to retrieve.
  • Timeout — Maximum time to wait for the request, in milliseconds; defaults to 10000.

Output shape

A single item containing a JSON object with success, action, source, and sessionId fields.

source contains the Selenium response's value, or null if that value is missing. The operation requires Selenium API credentials and an active session.

Links

Discussion