Skip to main content

Overview

The click action triggers an interaction when the agent presses on a specific element. Spur supports standard left clicks, double clicks, and right clicks.

Click Types

Single Click

Standard left click for buttons, links, checkboxes, and other interactive elements.

Double Click

Double left click for selecting text, opening items, or triggering edit modes.

Right Click

Right click to open context menus or access additional options on an element.

Common Use Cases

Best Practices

  • Be specific in your element descriptions so the agent can reliably identify the correct target
  • Include surrounding context when targeting dynamic elements
  • Consider using a Wait action before clicking on content that loads dynamically
  • Verify the click result when the interaction is critical to the test flow
Avoid generic descriptions like “Click the button”. Always provide enough context for the agent to identify the correct element.

Troubleshooting

If the agent cannot find the element:
  • Check if the element is visible in the viewport
  • Ensure the description matches what is displayed on screen
  • Add more context such as nearby text or section names
  • Use a Wait action if the element loads dynamically
If the agent clicks the wrong element:
  • Add more specific context to distinguish the target
  • Include nearby text or landmarks
  • Specify the element type explicitly (e.g. “Click the Submit button” instead of “Click Submit”)