Skip to main content

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)

NameDescriptionData TypeRequired?Example
Browser session IDThe unique identifier of the browser instance. Can be retrieved from "Open web session" Wrk ActionText (Short)Yesfb9bc380-146c-420e-9130-50ce93614e05
Action typeLeft click, right click, double click, or hover. Defaults to left click.ChoiceYesLeft click
Selection methodAdvanced, Legacy, or Vision.ChoiceYesAdvanced
Element identifierThe selector of the element to interact with. Used with Advanced or Legacy selection.Text (Long)For Advanced or Legacy#submit-button
Match indexThe position of the element when an Advanced selector matches multiple elements. Starts at 1.NumberNo1
Timeout (seconds)Maximum wait per operation for Advanced or Legacy selection. Defaults to 30 seconds. Must be greater than 0 and at most 180.NumberNo60

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)

NameDescriptionData TypeRequired?Example
Unsuccessful messageIf unsuccessful, a message stating what went wrongText (Long)Yes
Unsuccessful screenshotIf unsuccessful, a screenshot of the websiteFileYes

Outcomes

NameDescription
SuccessThe requested click or hover completed.
UnsuccessfulThe 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