Ask AI
Skip to main content

Get Check box element by code

Function: Get Check box element by code

This action allows you to easily find and retrieve a specific checkbox element from your application's user interface by using its unique identifier, known as its "code." Once retrieved, you can store this checkbox element in a variable to use in subsequent actions, such as checking its status, enabling/disabling it, or performing other manipulations.

Input,

  • Code (Text): The unique identifier (code) assigned to the checkbox element you want to find. This is a required input.

Output,

  • Element (UI Element - Checkbox Field): The actual checkbox element that was found using the provided code. This element is stored in a variable that you specify, making it available for other actions.

Execution Flow,

Real-Life Examples,

  1. Checking a "Remember Me" checkbox:

    • Inputs:
      • Code: remember_me_checkbox
      • Element (Variable Name): RememberMeField
    • Result: The checkbox element with the code remember_me_checkbox is found and stored in a variable named RememberMeField. You can then use RememberMeField in a subsequent action to check if it's selected.
  2. Dynamically enabling/disabling an "Opt-in" checkbox:

    • Inputs:
      • Code: email_opt_in_consent
      • Element (Variable Name): EmailConsentCheckbox
    • Result: The checkbox element for email consent is retrieved and stored in the EmailConsentCheckbox variable. You can now use this variable to enable or disable the checkbox based on other user selections or data.
  3. Validating a "Terms and Conditions" acceptance:

    • Inputs:
      • Code: terms_and_conditions_agreement
      • Element (Variable Name): TACCheckbox
    • Result: The checkbox element representing the "Terms and Conditions" agreement is found and assigned to the TACCheckbox variable. This allows you to easily check if the user has selected this checkbox before proceeding with a form submission.