Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Note

These actions are available when working with the Android application testing only.

SelectItemByName

This action selects the specified item from the MobileDropDown. The parameter value specified here is case-sensitive. 

Note: Items present in the drop-down must have a 'text' property.

Input Parameters:

ParameterName

Parameter Description

Mandatory

Data Type

itemName

Enter the itemnname to be selected from the list.

Yes

 String


Example:
SelectItemByName             "Qualitia"

Anchor_Toc472359911_Toc472359911

Click

Multiexcerpt include macro
nameClick

This action clicks the specified object.

This action does not have any input parameters. 

Example:

pageWebButton Actions

On this page:

Table of Contents
maxLevel2
minLevel2
absoluteUrltrue

Anchor_Toc472359912_Toc472359912

ParameterName

Parameter Description

Mandatory

Data Type

enability

Value of this parameter can be true or false.
If True – checks if the object exists
If False – checks that object does not exist

No

String

Example:
VerifyExistence                          "TRUE"

Anchor_Toc472359918_Toc472359918WaitForObject

This action waits for the object to appear for maximum number of seconds specified. If the object is found or not found before the maximum time specified, the keyword stops waiting.

Input Parameters:

ParameterName

Parameter Description

Mandatory

Data Type

timeOut

The maximum no of seconds to wait to check for the object existence or otherwise. This has to be 0 or a positive integer value.

Yes

String

Existence

String value to specify whether to check for existence or non-existence.

If TRUE – checks for existence

If FALSE – check for non-existence

Yes

String

Example:
WaitForObject                               "15"                    "TRUE"

Multiexcerpt include macro
nameLongPress

This action performs the long press event on the specified object. 

This action does not have any input parameters.

Example:
LongPress

Anchor_Toc472359913_Toc472359913Swipe

This action performs swipe and finds object until timeout occurs.

Input Parameters:

ParameterName

Parameter Description

Mandatory

Data Type

upDownLeftRight

Direction of Swipe

  • Up: Move finger from down to up on the device screen.
  • Down: Move finger from up to down on the device screen.
  • Left: Move finger from right to left on the device screen.
  • Right: Move finger from left to right on the device screen.

No

String

timeoutInSeconds

Enter the timeout in seconds to perform swipe.

No

String

swipePageInSeconds

Enter in how many seconds one page should be swiped. Default is 1 second.

Note: Use this parameter with caution only when control on swipe speed is required.

No

String

Example:
Swipe                  "up"                   "10"             "1" Anchor_Toc472359914_Toc472359914StoreExistence

This action stores existence of the specified object under the given key.

Input Parameters:

ParameterName

Parameter Description

Mandatory

Data Type

Key

The variable in which the existence (true/false) of the object is stored.

Yes

 String

Example:
StoreExistence                          "key" Anchor_Toc472359915_Toc472359915StorePropertyValue

This action stores the property of the specified object under the key name. The stored value can be retrieved using the key name.

Some Android and iOS properties are not accessible.

List of accessible properties for Android: "name","contentDescription","className","resourceId","text","enabled","checkable","checked","clickable","focusable","focused","longClickable","scrollable","selected","displayed"

List of accessible properties for iOS: "name", "value", "type", "visible", "label", "enabled", "accessible", "rect", "frame", "accessibilityContainer", "wdName", "wdValue", "wdType", "wdVisible", "wdLabel", "wdEnabled", "wdAccessible", "wdRect", "wdFrame", "wdAccessibilityContainer"

Input Parameters:

ParameterName

Parameter Description

Mandatory

Data Type

Key

Variable in which the property value will be stored

Yes

 String

Property

Property/attribute name whose value needs to be stored in "Key". This can be any accessible property of Android/iOS native object.

Yes

 String

Example:
StorePropertyValue                            "key"                     "text" Anchor_Toc472359916_Toc472359916VerifyEnability

This action verifies the enability of the specified object. 

Input Parameters:

ParameterName

Parameter Description

Mandatory

Data Type

enability

Value of this parameter can be true or false.
If True – checks if the object is enabled
If False – checks if the object is disabled

No

String

Example:
VerifyEnability                          "TRUE"

Anchor_Toc472359917_Toc472359917VerifyExistence

This action verifies the existence of the specified object. 

Input Parameters:

pageMobileButton Actions

Multiexcerpt include macro
nameSwipe
pageMobileButton Actions

Multiexcerpt include macro
nameStoreExistence
pageWebButton Actions

Multiexcerpt include macro
nameStorePropertyValue-Mobile
pageMobileButton Actions

Multiexcerpt include macro
nameVerifyEnability
pageWebButton Actions

Multiexcerpt include macro
nameVerifyExistence
pageWebButton Actions

Multiexcerpt include macro
nameWaitForObject
pageWebButton Actions