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,
-
Checking a "Remember Me" checkbox:
- Inputs:
- Code:
remember_me_checkbox - Element (Variable Name):
RememberMeField
- Code:
- Result: The checkbox element with the code
remember_me_checkboxis found and stored in a variable namedRememberMeField. You can then useRememberMeFieldin a subsequent action to check if it's selected.
- Inputs:
-
Dynamically enabling/disabling an "Opt-in" checkbox:
- Inputs:
- Code:
email_opt_in_consent - Element (Variable Name):
EmailConsentCheckbox
- Code:
- Result: The checkbox element for email consent is retrieved and stored in the
EmailConsentCheckboxvariable. You can now use this variable to enable or disable the checkbox based on other user selections or data.
- Inputs:
-
Validating a "Terms and Conditions" acceptance:
- Inputs:
- Code:
terms_and_conditions_agreement - Element (Variable Name):
TACCheckbox
- Code:
- Result: The checkbox element representing the "Terms and Conditions" agreement is found and assigned to the
TACCheckboxvariable. This allows you to easily check if the user has selected this checkbox before proceeding with a form submission.
- Inputs: