Skip to main content

Click element on web page

Sophie avatar
Written by Sophie
Updated over 2 weeks ago

Definition and Usage

Click element on web page allows you to click a button, link, or any other element on a web page. This command provides precise control over how the click is performed, including options for different click types, mouse buttons, and click positions.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Web page

Select a variable that contains the web page to work with

-

Yes

Element

Select or capture an element to operate on

-

Yes

Use the Capture button to select an element on the page

Advanced settings

Parameter

Description

Possible Values

Options / Notes

Simulate human clicks

Trigger input events by simulating human actions (auto-switches IME to English to avoid input errors)

-

Enabled by default

Click type

Choose between single or double click

Single click, Double click

Default is Single click

Mouse button

Select a mouse button to click

Left, Right

Default is Left

Modifier key

Select a modifier key to hold during click

None, Ctrl, Shift, Alt

Default is None

Click position

Select specific position to click on element

Center of the element, Top left corner of the element, Bottom left corner of the element, Top right corner of the element, Bottom right corner of the element

Default is Center of the element

Horizontal offset (px)

Horizontal pixel offset from the selected click position

-

Vertical offset (px)

Vertical pixel offset from the selected click position

-

Wait after execution (s)

Wait for a specified number of seconds after the action is executed

-

Default is 1 second

Element timeout (s)

Wait time for element to appear (seconds)

-

Default is 20 seconds

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables for any parameter by clicking the {x} icon next to the input field. This allows you to dynamically set values such as which web page to interact with or specific timing parameters based on previous steps in your workflow.


Notes

  • Before using this command, ensure that the web page is properly loaded and the target element is visible and interactive.

  • The "Simulate human clicks" option is recommended for most scenarios as it mimics natural user interaction and helps avoid detection by anti-bot systems.

  • If the element is not found within the specified timeout period, the command will result in an error.

  • Using appropriate offsets can be helpful when clicking on specific parts of complex elements that contain multiple interactive areas.

  • Consider using longer wait times after execution when clicking triggers page loads or UI updates.

Did this answer your question?