Skip to main content

Click on an element on a website

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 Process Automation

Inputs (what you have)

NameDescriptionData TypeRequired?Example
Browser session IDThe unique identifier of the browser instance. Can be retrieved from "Open a browser session" Wrk ActionText (Short)Yesfb9bc380-146c-420e-9130-50ce93614e05
Element identifierThe CSS selector of the element you want to clickText(Long)Yes#submit-button
Right click?Would you lik to right click on the element?True or FalseNo
Double click?Would you like to double click on the element?True or FalseNo

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 addtional details on configuring your selectors

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
SuccessThis status is selected in the event that the element was successfully clicked.
No resultThis status is selected in the event of the following scenario:Unable to find the requested element
Impossible to completeThis status is selected in the event of the following scenario:Unable to connect to the session for some reason

Requirements

  • N/A