Skip to main content
[Command] Set checkbox on web page
Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

The Set checkbox on web page command is used to instruct the workflow to tick or untick a checkbox on a web page.


Parameters Values

Set parameters

Parameter

Definition

Web page

Select a target web page. There are 2 commands that can be used to generate a web page variable:

  • Go to web page

  • Find web page

Element

Select the checkbox element to tick by capturing a new element or selecting from a previously saved element

Set as

Choose the checkbox status

  • Checked

  • Unchecked

  • Reverse

Advanced settings

Parameter

Definition

Wait after execution

Wait for a certain period of time (seconds) after the command completes execution

Wait for element

Wait for a certain period of time (seconds) until the element(textbox) appears

Error handling

Parameter

Definition

When error occurs

Select the action to be performed when an error occurs

  • Terminate the project

  • Ignore the error and execute the next command

  • Retry action


Example

The workflow below will go to www.myntra.com/men-formal-shirts on the built-in browser, save the webpage as a variable named Myntra, and set the checkbox element named "TheSecondCheckbox" as checked on the webpage "Myntra".

Note: The Capture function is not able to capture the right XPath to locate the checkbox element on this website. Please double-click the target element on the Elements tab, enable Customize XPath, and input the valid XPath. To learn how to generate a proper XPath, please refer to the XPath tutorial.

Once you click run, it'll give you the result as shown below.

Did this answer your question?