On this Page:
Table of Contents
All the SFDCCheckBox class actions work for the following SFDC components:
- inputCheckbox
- checkbox-group
The following table describes how Qualitia Automation Studio (QAS) identifies and adds a checkbox into the object repository when using the Qualitia Automation Recorder or Chrome Object Spy:
QAS Recorder and Chrome Object Spy | Example | |
---|---|---|
If the checkbox is not part of a group: (inputCheckbox) | Adds the checkbox name as an object in the format: <ObjectName>_inputCheckbox. The QAS recorder also adds the associated action that was captured. | If a checkbox name is called Occupation, then it adds the object as Occupation_inputCheckbox. |
If the checkbox is part of a group: (checkbox-group) | Adds the checkbox group as an object in the format: <CheckboxGroupName>_checkboxGroup. The QAS recorder also adds the associated action that was captured. If the associated action contains any parameter, then QAS Recorder adds the selected checkbox name in the associated parameter. | If a checkbox group is called Industry and you select the checkbox called IT, then an object called Industry_checkboxGroup is added and the selected checkbox is added in the associated parameters. |
Click
This action clicks the specified object.
This action does not have any parameters.
Example:
Click
Check
This action checks the checkbox.
Example:
Check
CheckByValues
This action checks the checkboxes as per the values that you specify.
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
values | Enter the values of the checkboxes that you want to select by separating them with a tilde (~) and a delimiter (^). | Yes | String |
Example:
For example, in Lightning theme, the Home page contains the two checkboxes: Special Discount and Make Button Enable on checkbox click. You can check these checkboxes.
CheckByValues "Special Discount~^Make Button Enable on checkbox click"
MouseOver
This action hovers the mouse over the specified object.
This action does not have any parameters.
Example:
MouseOver
StorePropertyValue
This action stores the property of the specified object using property names, such as class, id, name, and role, and parameter value, such as the actual value of the property.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
key | Enter the key name to store the property value. | Yes | String |
propertyName | Enter the property or attribute name whose value you want to store. | Yes | String |
Example:
StorePropertyValue "key" "class"
Uncheck
This action deselects the checkbox of a page.
Example:
Uncheck
UncheckByValues
This action deselects the checkboxes as per the values that you specify.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
values | Enter the name of the checkboxes that you want to deselect by separating them with a tilde (~) and a delimiter (^). | Yes | String |
Example:
For example, in Lightning theme, the Home page contains the two checkboxes: Special Discount and Make Button Enable on checkbox click. You can deselect these checkboxes.
UncheckByValues "Special Discount~^Make Button Enable on checkbox click"
VerifyChecked
This action verifies whether the checkboxes are selected as per the values that you specify.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listofvalues | Enter the values of the checkboxes that you want to select by separating them with a tilde (~) and a delimiter (^). | No | String |
Example:
For example, in the Classic theme, the New Accounts Checks page contains the checkboxes, such as set[,set[], and set[num123]. You can verify if the checkboxes are selected.
VerifyChecked "set[~^set[]~^set[num123"
VerifyEnability
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Enter one of the following:
| No | String |
Example:
VerifyEnability "True"
VerifyExistence
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Enter one of the following:
| Yes | String |
Example:
VerifyExistence "True"
VerifyPropertyValue
This action verifies the property of the specified object using property names, such as class, id, name, and role, and parameter value, such as the actual value of the property.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
propertyName | Enter the property or attribute name as specified in the DOM structure. | Yes | String |
value | Enter the property value you want to verify. | Yes | String |
Example:
VerifyPropertyValue "class" "fr small"
VerifyUncheck
This action verifies whether the checkboxes are unchecked as deselected as per the values that you specify.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listofvalues | Enter the values that you want to deselect by separating them with a a tilde (~) and a delimiter (^). | No | String |
Example:
For example, in the Classic theme, the New Accounts Checks page contains checkboxes, such as set[,set[], and set[num123]. You can verify the checkboxes are deselected.
VerifyChecked "set~[^set[]~^set[num123"
VerifyVisibility
This action verifies the visibility of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Enter one of the following:
| No | String |
Example:
VerifyVisibility "True"