Skip to content

Click Element (web)

Function Description

TIP

Click on a button, link or any other element in the web page

Click Element (web)

Configuration Item Description

General

Command Input

  • Webpage ObjectTBrowser: Enter a webpage object that has been obtained or created by the 'Open Webpage' function

  • Operation TargetTTarget: The web element to be operated on

Command Output

No output for the current command

Advanced

  • Simulate Human ClickBoolean: Simulate user click behavior, trigger the browser's event mechanism, and ensure consistency with real operations. Suitable for scenarios requiring simulation of user interaction.

  • Send Window MessagesBoolean: Directly simulate clicks through the operating system's messaging mechanism, bypassing the browser's event system, which is faster but may not trigger all interactive logic within the webpage.

  • Show Mouse Movement TrailBoolean: Whether to show the mouse movement trail or not

  • Click MethodInteger: Single-click or double-click

  • Mouse ButtonInteger: Trigger the clicked mouse button

  • Keyboard Modifier KeysInteger: Keyboard function keys that need to be pressed

  • Delay Before (ms)Integer: The waiting time before instruction execution

  • Delay After Execution (ms)Integer: Time to continue waiting after the command execution is completed

  • Target Text PositionInteger: Supports clicking at the center position of the element (center point of the element's rectangular area), random position (automatically specify a point within the rectangular range of the element), and custom position (manually specify the target point).

  • CustomInteger: Custom position

  • Horizontal TranslationInteger: Enter a positive number to move right, a negative number to move left

  • Vertical TranslationInteger: Enter a positive number to move down, a negative number to move up

  • Wait for Element to Exist (ms)Integer: Timeout for waiting for the target element to exist

Error Handling

  • Print Error LogsBoolean: Whether to print error logs to the "Logs" panel when the command fails. Default is checked.

  • Handling MethodInteger:

    • Terminate Process: If the command fails, terminate the process.

    • Ignore Exception and Continue Execution: If the command fails, ignore the exception and continue the process.

    • Retry This Command: If the command fails, retry the command a specified number of times with a specified interval between retries.

Usage Example

Process logic description:

Common Errors and Handling

None

Frequently Asked Questions

None