Selenium icon

Selenium

Interact with a Selenium Server via W3C API

Click Element

AI-generated

Summary

Finds an element in the specified Selenium session using the selected locator strategy and clicks it. Configure the session ID, selector type, and selector; the operation uses the Selenium API credential and the request timeout (10,000 ms by default).

Inputs

  • Session ID (required) — ID of the Selenium session containing the element.
  • Timeout — Maximum time to wait for each request, in milliseconds; defaults to 10,000.
  • Selector Type (required) — How to locate the element: CSS Selector (default), XPath, ID, Name, Tag Name, Class Name, Link Text, or Partial Link Text.
  • Selector (required) — Value for the selected locator strategy, such as #my-btn for CSS or //div[1] for XPath.

Output shape

A single item containing a JSON object on success.

The object contains success: true, action: "clickElement", the selector, and session ID. If the element cannot be found or the click request fails, the node errors unless Continue On Fail is enabled.

Links

Discussion