Mouse interaction
Click on an element on a website.
Note: If single quotes (') are used in the element identifier then they will need to be escaped. (\') otherwise the Wrk Action will throw an error.
Application
- Web - Interactions
Inputs (what you have)
| Name | Description | Data Type | Required? | Example |
|---|---|---|---|---|
| Browser session ID | The unique identifier of the browser instance. Can be retrieved from "Open web session" Wrk Action | Text (Short) | Yes | fb9bc380-146c-420e-9130-50ce93614e05 |
| Action type | Left click, right click, double click, or hover. Defaults to left click. | Choice | Yes | Left click |
| Selection method | Advanced, Legacy, or Vision. | Choice | Yes | Advanced |
| Element identifier | The selector of the element to interact with. Used with Advanced or Legacy selection. | Text (Long) | For Advanced or Legacy | #submit-button |
| Match index | The position of the element when an Advanced selector matches multiple elements. Starts at 1. | Number | No | 1 |
| Timeout (seconds) | Maximum wait per operation for Advanced or Legacy selection. Defaults to 30 seconds. Must be greater than 0 and at most 180. | Number | No | 60 |
Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data Library section. These variables in the Data Library section are the outputs of previous Wrk Actions in the Wrkflow.
See Working with Wrk’s Selection Methods in Web Automation for additional details on configuring your selectors
Timeout behavior
For Advanced and Legacy selection, Timeout (seconds) sets the maximum wait for each element lookup or mouse operation. It defaults to 30 seconds when omitted or blank and must be greater than 0 and at most 180. Operations finish as soon as they complete.
Set it to 60 to allow longer waits on slow pages. Existing Wrkflows also default to 30 seconds; set 60 if relying on a previous 60-second element lookup. This setting does not wait for website background processing after a click. Vision selection keeps its existing wait controls.
Outputs (what you get)
| Name | Description | Data Type | Required? | Example |
|---|---|---|---|---|
| Unsuccessful message | If unsuccessful, a message stating what went wrong | Text (Long) | Yes | |
| Unsuccessful screenshot | If unsuccessful, a screenshot of the website | File | Yes |
Outcomes
| Name | Description |
|---|---|
| Success | The requested click or hover completed. |
| Unsuccessful | The element could not be found or the mouse interaction could not complete, including when the timeout was reached. See the unsuccessful message and screenshot when available. |
Requirements
- N/A