Wait action keywords help you create your test script efficiently using wait for various element.
Suppose you wish to execute the further steps when an element is visible on the screen/page.
Structure :
launchApp <parameters>
waitForElementVisible <parameters>
<further steps to execute>
All the keywords under this list hard fail in negative scenarios.
Action | Parameters | Example Usage |
---|---|---|
waitForTitle
To wait till Page Title (Mentioned in Parameter 1) displays as page Title. | Param 1 : Expected title to appear | Example:
Pauses the execution (max for 30 seconds) till Page title bqurious is displayed. |
waitsec
To pause the execution for few(mentioned in Parameter1) seconds. | Param 1 : Time in seconds | Example:
Pauses the execution for 10 seconds |
waitForElementVisible
To wait for object (mentioned in objectName) to display on the screen. | Param 1 (Default: 60 sec) : Time in seconds | Example:
Waits (max for 30 seconds) for the object bqObject to display on the screen |
waitForElementNotVisible
To wait till element is not visible on the screen. | Param 1 (Default: 60 sec) : Time in seconds | Example:
Pauses the execution (max for 30 seconds) till loadingImage is not visible on the screen |
waitForElementEnabled
To wait till object (mentioned in objectName) is enabled on the screen. | Param 1 (Default: 60 sec) : Time in seconds | Example:
Waits (max 30 seconds) till the object xyzObj is enabled |
waitForElementDisabled
To wait till object (mentioned in objectName) is disabled on the screen. | Param 1 (Default: 60 sec) : Time in seconds | Example:
Waits (max 30 seconds) till the object xyzObj is disabled |
waitForElementText
To wait till element text (Mentioned in Parameter 1) is not visible on the screen. | Param 1 : Expected text to appear | Example:
Pauses the execution (max for 30 seconds) till element bqObject text is bqSelect. |
waitForElementValue
To wait till element value (Mentioned in Parameter 1) is not visible on the screen. | Param 1 : Expected value to appear | Example:
Pauses the execution (max for 30 seconds) till element bqObject value as bqText. |
waitUntillElementHasValue
To wait until object (mentioned in objectName) has value on the screen. | Param 1 (Default: 60 sec) : Time in seconds | Example:
Waits (max 30 seconds) until the object bqObject has value |
0 Comments