# Click Element

The **Click Web Element** block simulates a user click on an element in a Salesforce web application, such as a button, tab, or item in a grid or list. The block is created automatically by the **Salesforce Fusion Recorder** when you click an element during recording. When executed, the target element is scrolled into view and clicked.

This block only works in browser windows that were launched using the **Salesforce Login** block or within an active Salesforce recording session.

**Note:** The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Start the **Salesforce Fusion Recorder** and record your scenario. When you click a target element in the Salesforce UI, a **Click Web Element** block is automatically added to the recording flow.
2. Save and close the Fusion Recorder so the recorded flow, including the **Click Web Element** block is converted into a Flow flow.
3. Run the flow from Flow when it's ready.

## Building block parameters

Parameters  
* **Block header:** Shows the title of the **Click Web Element** block, typically based on the clicked element (for example, *Click Save* ). You can rename it at any time by double-clicking the header and entering a new title to keep flows readable and well organized.

* **Fail:** Triggers if the target element cannot be found or clicked within the allowed time. You can connect this output to a **Fail** block or to an alternate branch to implement error handling, retries, or recovery logic.

* **Default timeout:** Controls how the timeout for this block is determined:
  * When the **Default timeout** checkbox is **not selected**, the block uses a fixed timeout of **10 seconds**, unless you override it via **Timeout**.
  * When the checkbox is **selected**, the block uses the **Default timeout** value defined in the flow settings for the current flow.

* **Timeout:** Specifies the maximum time the block will spend trying to find and click the target element before giving up and triggering the **Fail** output. This timeout applies only to this block.
  Every case also has a separate **global timeout** configured in the **Settings** panel; if the entire case runs longer than that global timeout, the case is cancelled regardless of this block's own timeout settings.

## Resources

|                                                **Topic**                                                |               **Description**               |
|---------------------------------------------------------------------------------------------------------|---------------------------------------------|
| [Salesforce FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/salesforce-faq.md)                                       | Frequently asked questions about Salesforce |
| [Salesforce Fusion Recorder](https://docs.leapwork.com/leapwork-flow/latest/working-with-leapwork/salesforce-fusion-recorder.md) | How to use the Salesforce Fusion Recorder   |
