Document toolboxDocument toolbox

SFDCCheckBox

On this Page:

Note:

SFDC objects do not support the following features:

  • Polling Interval and Time Out on object level

  • Wait actions

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 SpyExample

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 ITthen 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.
 

If the SFDC component is inputCheckBox, then specify a single value.

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 Special Discount checkbox. You can check this checkbox.

CheckByValues      "Special Discount"

For example, if a checkbox group called Stage contains multiple checkboxes: Open, Closed, Closed Won.  You can check them.

CheckByValues      "Open~^Closed~^Closed Won"

MouseOver

This action hovers 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.

If the SFDC component is inputCheckBox, then specify a single value.

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 Special Discount checkbox.  You can uncheck this checkbox.

CheckByValues      "Special Discount"

For example, if a checkbox group called Stage contains multiple checkboxes: Open, Closed, Closed Won.  You can uncheck them.

CheckByValues      "Open~^Closed~^Closed Won"

VerifyChecked

This action verifies whether the checkboxes are selected as per the values that you specify.

If the SFDC component is inputCheckBox, then specify a single value.


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 set[num123] checkbox. You can verify if it is checked.

VerifyChecked         "set[num123"

For example, if a checkbox group called Stage contains multiple checkboxes: Open, Closed, Closed Won. You can verify if they are checked.

VerifyChecked      "Open~^Closed~^Closed Won"

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:

  • True to verify that the object is enabled.
  • False to verify that the object is disabled.
    Note: If you do not enter any value, the default value is set to True during the test case execution.

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:

  • True to verify that the object is enabled.
  • False to verify that the object is disabled.
    Note: If you do not enter any value, the default value is set to True during the test case execution

No

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

valueEnter the property value you want to verify.YesString

Example:

VerifyPropertyValue      "class"    "fr small"

VerifyUncheck

This action verifies whether the checkboxes are deselected as per the values that you specify.

If the SFDC component is inputCheckBox, then specify a single value.


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 (^).

Yes

String

Example:

For example, in the Classic theme, the New Accounts Checks page contains the set[num123] checkbox. You can verify if it is unchecked.

VerifyUncheck         "set[num123"

For example, if a checkbox group called Stage contains multiple checkboxes: Open, Closed, Closed Won. You can verify if they are unchecked.

VerifyUncheck      "Open~^Closed~^Closed Won"

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:

  • True to verify that the object is visible.
  • False to verify that the object is not visible.
    Note: If you do not enter any value, the default value is set to True during the test case execution.

No

String

Example:

VerifyVisibility          "True"