Selenium icon

Selenium

Interact with a Selenium Server via W3C API

Start Session

AI-generated

Summary

Starts a new Chrome WebDriver session through the configured Selenium Server and returns its session ID. Use the advanced options to set Chrome arguments, a custom user agent, experimental Chrome options, or a proxy.

Inputs

  • Timeout — Maximum time to wait for the Selenium request to complete, in milliseconds; defaults to 10000.
  • Advanced Options: User Agent — Custom User-Agent string, passed to Chrome as a command-line argument.
  • Advanced Options: Experimental Options (JSON) — JSON object merged into Chrome's goog:chromeOptions. Invalid JSON causes the operation to fail.
  • Advanced Options: Proxy URL — Proxy URL passed to Chrome and set as the session's HTTP and SSL proxy.
  • Advanced Options: Chrome Options — Comma-separated Chrome command-line options, such as --headless or --disable-gpu.

Output shape

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

The session ID is read from value.sessionId or, as a fallback, sessionId in the Selenium response. A Selenium API credential is required to connect to the configured server.

Links

Discussion