Selenium icon

Selenium

Interact with a Selenium Server via W3C API

Execute Script

AI-generated

Summary

Executes the supplied JavaScript synchronously in the page associated with a Selenium session. Sends the script with no arguments and returns the Selenium result alongside the action and session ID.

Inputs

  • Session ID (required) — ID of the Selenium session to use.
  • Script (required) — JavaScript code to execute in the page.
  • Timeout — Maximum time to wait for the Selenium request, in milliseconds; defaults to 10000.

Output shape

A single n8n item containing a JSON object.

The object includes success, action, sessionId, and result. result is the value returned by Selenium, or null if the response has no value. Request failures raise an operation error unless Continue On Fail is enabled.

Links

Discussion