Info |
---|
MobileList control is abstract control for any layout/widget having list-item like structures in UIAutomator. UIAutomation such as Android (android.widget.ListView, any RelativeLayout having listItems child, elements grandchild, and TableLayout android.widget.GridView) In the iOS platform, only UITable with UITableCell is seen (only that is supported for now). The following limitations of the MobileList control are:
|
...
This action clicks the element present at the specified location.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index which you want to select. Index starts at 1. | Yes | String |
listItemMemberIndex | Enter the list item member from the list which you want to select. Index starts at 1. | Yes | String |
Example:
ClickElement "3" "2"
...
This action compares the data present at the specified list item member index.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemMemberIndex | Enter the list item member index where you want to compare the data. | No | String |
expectedListItemMembersData | Enter the expected data to verify. | No | Array |
Example:
CompareListItemMembersData "2" "Qualitia^QTP^WebDriver"
...
This action compares the data present at the specified list item index.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index where you want to compare the data. | Yes | String |
expectedListItemData | Enter the expected data to verify. | No | Array |
Example:
CompareListItemData "2" "Qualitia^QTP^WebDriver"
...
This action deselects the check box present at given list item index.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index from where check box is to be deselected. | Yes | String |
listItemMemberIndex | Enter the list item member index from where check box is to be deselected. | No | String |
Example:
DeSelectCheckboxAtListItemMemberIndex "3" "7"
...
This action does not have any parameter.
Example:
LongPress
NoOps
This action works as a placeholder. You can use this action as a reminder of something you want to perform later.
Example:
NoOps
SelectCheckboxAtListItemMember
This action selects the check box present in the specified list item member.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index from where you want to select the check box. | Yes | String |
listItemMemberIndex | Enter the list item member index from where you want to select the check box. | No | String |
Example:
SelectCheckboxatListItemMember "5" "4"
...
This action stores existence of the object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the existence's Boolean value will be stored.
| Yes | String |
Example:
StoreExistence "Key"
...
This action stores the count of list items in the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name in which you want to store the item count. | Yes | String |
Example:
StoreListItemCount "Key"
...
This action stores the list item index which contains the maximum value. This action only works with numerical data.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key in which you want to save the list item index. | Yes | String |
listItemMemberIndex | Enter the list item member index in which you want to look for the data. | No | String |
Example:
StoreListItemIndexContainingMaxValue "Key" "1"
...
This action stores the list item index which contains the minimum value. This action only works with numerical data.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key in which the list item index will be saved. | Yes | String |
listItemMemberIndex | Enter the list item member index in which the data is to be checked. | Yes | String |
Example:
StoreListItemIndexContainingMinValue "Key" "1"
...
The comparison is case-sensitive.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key in which you want to save the list item index. | Yes | String |
textToVerify | Enter the text that you want to verify. | No | String |
listItemMemberIndex | Enter the list item member index in which you want to check the data. | Yes | String |
Example:
StoreListItemIndexContainingText "Key" "Qualitia" "1"
...
The comparison is case-sensitive.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name in which the index number will be stored. | Yes | String |
textArrayToVerify | Enter the text array to be verified. | Yes | Array |
listItemMemberIndex | Enter the list item member from where the text is to be taken. | Yes | String |
Example:
StoreListItemIndexContainingTextInArray "Key" "d^f" "3"
...
This action stores the total count of the specified list item members under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which you want to store the count. | Yes | String |
Example:
StoreListItemMembersCount "Key"
...
List of accessible properties for iOS: "name", "value", "label", "hint"
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Key | Enter the key name under which the property value will be stored. | Yes | String |
Property | Property/attribute name whose value needs to be stored under the specified key. This can be any accessible property of Android/iOS native object mentioned above. | Yes | String |
Example:
StorePropertyValue "key" "text"
...
This action stores visibility of the mobile object under the specified key. The key value can be retrieved using the key name.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
strKey | The visibility value for the mobile object is stored as:
| No | String |
Example:
StoreVisibility "Key"
...
This action performs swipe and finds object until timeout occurs.
Input Parameters:
ParameterName | Parameter Description | Mandatory | Data Type |
---|---|---|---|
upDownLeftRight | Enter the direction of swipe:
| No | String |
timeoutInSeconds | Enter the timeout in seconds. | No | String |
swipePageInSeconds | Enter in how many seconds one page should be swiped. Default is 1 second. | No | String |
Example:
Swipe "up" "10" "1"
...
The data comparison is case-sensitive.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemIndex | Enter the list item index where you want to verify the existence. | Yes | String |
expectedListItemsData | Enter the expected data separated by carrot. You can provide one or more expected strings. | No | Array |
existence | Enter the expected existence of the data (True or False). | No | String |
Example:
VerifyDataExistenceInListItem "7" "40" "True"
...
The data comparison is case-sensitive.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
listItemMemberIndex | Enter the list item member index where existence is to be verified. | Yes | String |
expectedListItemMembersData | Enter the expected data separated by carrot. You can provide one or more expected strings. | No | Array |
existence | Enter the expected existence of the data (True or False). | No | String |
Example:
VerifyDataExistenceInListItemMembers "5" "49" "True"
...
This action verifies the enability of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
enability | Value for this parameter can be True or False.
| No | String |
Example:
VerifyEnability "True"
...
This action verifies the existence of the specified object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
existence | Value for this parameter can be True or False.
| No | String |
Example:
VerifyExistence "True"
...
This action verifies the total count of items present under the list with the expected specified count.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
expectedListItemsCount | Enter the expected count. | No | String |
Example:
VerifyListItemCount "5"
...
This action verifies the list item member count with the expected specified count.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
expectedListItemMembersCount | Enter the expected count. | Yes | String |
Example:
VerifyListItemMemberCount "5"
...
This action verifies the actual data of the specified location matches with the expected data.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
data | Enter the data which you want to verify (case-sensitive). | Yes | String |
listItemIndex | Enter the list item index from which you want to verify the data. | Yes | String |
listItemMemberIndex | Enter the list item member index from which you want to verify the data. | No | String |
Example:
VerifyText "Qualitia" "3" "1"
WaitForObject (Deprecated)
This action waits for the object to appear or disappear for the maximum number of seconds specified.
...
Info |
---|
Note:
|
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|---|---|---|
Timeout | Enter the number of seconds to wait for the object to appear or disappear. This has to be 0 or any positive number. | No | String |
existence | Value for this parameter can be True or False.
| No | String |
Example:
WaitForObject "10" "True"
...