Selenium icon

Selenium

Interact with a Selenium Server via W3C API

Close All Sessions

AI-generated

Summary

Closes every active WebDriver session reported by the Selenium server. Uses the configured Selenium API credentials and the timeout to list sessions, then attempts to delete each session.

Inputs

  • Timeout — Maximum wait for each request, in milliseconds; defaults to 10,000.

Output shape

A single item per input item, with a JSON object containing success, action, count, closedSessions, failedSessions, and sessionId.

count is the number of sessions closed. closedSessions and failedSessions contain session IDs; sessionId is the closed IDs joined by commas. Individual delete failures are reported in failedSessions; success is false if any deletion fails. Failure to fetch the active session list can fail the operation.

Links

Discussion