Click Element
In this section, we will guide you on how to use the Click Element
step.
Purpose
This step is used to simulate human clicking operations on webpage elements. It is one of the most basic and commonly used operations in workflows. It can simulate mouse single-click, double-click, left-click, right-click, and middle-click operations.
Configuration
General
Step Name: Custom step name.
Element Location: Configure the location of the element to be clicked, which is an XPath expression.
- Element is in IFrame/Frame: If the element to be clicked belongs to an IFrame or Frame, you need to check this option and configure the XPath location expression for the IFrame itself (relative to its root node
<html>
,<iframe>
,<frame>
or other tags).
TIP
If the root node IFrame is also nested in other IFrames, you need to configure all IFrames in order until the outermost IFrame (whose root node is the
<html>
tag). Configure them from top to bottom, with the last one representing the outermost IFrame element.- Element is in IFrame/Frame: If the element to be clicked belongs to an IFrame or Frame, you need to check this option and configure the XPath location expression for the IFrame itself (relative to its root node
Page Load Timeout: The maximum time to wait for page loading triggered by clicking an element. If the page hasn't finished loading after this time, a warning log about page load timeout will be output, and the step will complete without further waiting, proceeding to subsequent steps.
TIP
The default timeout wait time is 30 seconds. Please adjust this value according to your network environment and the loading speed of the target website. If network quality is poor, it's recommended to set longer timeout wait times like 60 seconds, 120 seconds, or 360 seconds.
Advanced
Open Link in New Tab: When enabled, clicking links or buttons that trigger new pages will attempt to open them in new tabs.
Simulate Human Click: When enabled, it will simulate actual hardware operations of a human using a mouse to click on the screen.
TIP
If you find that the default click method doesn't work for buttons on certain websites, try enabling this option. Since this method simulates real mouse clicks, it requires the element to be clicked to be visible on the screen, otherwise inaccurate positioning may cause the click to fail.
Click Method: Configure which type of mouse click to simulate.
- Single Click
- Double Click
Mouse Button: Configure which type of mouse button to use for the simulated click.
- Left Button
- Right Button
- Middle Button
Delay After Execution: The time to wait after performing the click operation.
Wait for Element to Appear: Before performing the click operation, wait for the element to be clicked to appear, configuring the maximum wait time.
TIP
The default wait timeout is 20 seconds. If a certain element takes longer to load and appear on the webpage, you can adjust this setting to a longer wait time. If the element appears earlier, the click operation will execute immediately without waiting for the timeout.