Skip to main content

Set checkbox state on web page

Sophie avatar
Written by Sophie
Updated over 2 weeks ago

Definition and Usage

This command allows you to check, uncheck, or toggle the state of a checkbox element on a web page. It provides a simple way to interact with checkbox elements during web automation processes.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Web page

Select a variable that contains the web page to work with

Yes

Must be a valid web page variable

Element

Select or capture an element to operate on

Yes

Use the Capture button to identify the checkbox element

Set as

Specify the state to apply to the checkbox

Checked, Unchecked, Toggled

Yes

Advanced settings

Parameter

Description

Required

Options / Notes

Wait after execution (s)

Wait for a specified number of seconds after the action is executed

No

Default: 1 second

Element timeout (s)

Wait time for element to appear (seconds)

No

Default: 20 seconds

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in parameter fields marked with {x}. This allows you to dynamically set parameters based on previously defined variables. For example, you can use a variable to determine the checkbox state or to specify which element to interact with.


Notes

  • Before using this command, ensure that the web page is properly loaded and the checkbox element is accessible.

  • The "Toggled" option will reverse the current state of the checkbox (checked becomes unchecked and vice versa).

  • If the element is not found within the specified timeout period, the command will fail.

  • This command only works with HTML checkbox elements or elements that function as checkboxes.

  • The element should be visible and interactable on the page for the command to work properly.

Did this answer your question?