Skip to content

Testing with Bqurious > Actions

Wait

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>

IMPORTANT

All the keywords under this list hard fail in negative scenarios.

ActionParametersExample Usage
waitForTitle Web


---

To wait till Page Title (Mentioned in Parameter 1) displays as page Title.
Param 1 : Expected title to appear Param 2 (Default: 60 sec) : Time in secondsExample:
waitForTitle : <Title to appear : bqurious> <Wait for : 30>
Pauses the execution (max for 30 seconds) till Page title bqurious is displayed.
waitsec Web, Mobile


---

To pause the execution for few(mentioned in Parameter1) seconds.
Param 1 : Time in secondsExample:
waitSec : <Seconds : 10>
Pauses the execution for 10 seconds
waitForElementVisible Web, Mobile


---

To wait for object (mentioned in objectName) to display on the screen.
Param 1 (Default: 60 sec) : Time in secondsExample:
waitForElementVisible : <Object : bqObject> <Seconds : 30>
Waits (max for 30 seconds) for the object bqObject to display on the screen
waitForElementNotVisible Web, Mobile


---

To wait till element is not visible on the screen.
Param 1 (Default: 60 sec) : Time in secondsExample:
waitForElementBNotVisible : <Object : loadingImage> <Wait for (seconds) : 30>
Pauses the execution (max for 30 seconds) till loadingImage is not visible on the screen
waitForElementEnabled Web, Mobile


---

To wait till object (mentioned in objectName) is enabled on the screen.
Param 1 (Default: 60 sec) : Time in secondsExample:
waitForElemntEnabled : <Object : xyzObj> <Wait for (seconds) : 30>
Waits (max 30 seconds) till the object xyzObj is enabled
waitForElementDisabled Web, Mobile


---

To wait till object (mentioned in objectName) is disabled on the screen.
Param 1 (Default: 60 sec) : Time in secondsExample:
waitForElementDisabled : <Object : xyzObj> <Wait for (seconds) : 30>
Waits (max 30 seconds) till the object xyzObj is disabled
waitForElementText Web, Mobile


---

To wait till element text (Mentioned in Parameter 1) is not visible on the screen.
Param 1 : Expected text to appear Param 2 (Default: 60 sec) : Time in secondsExample:
waitForElementText : <Object : bqObject> <Value to appear : bqSelect> <Wait For (seconds) : 30 <br/> Pauses the execution (max for 30 seconds) till element bqObject text is bqSelect.
waitForElementValue Web, Mobile <br/>

---

To wait till element value (Mentioned in Parameter 1) is not visible on the screen.
Param 1 : Expected value to appear Param 2 (Default: 60 sec) : Time in secondsExample:
waitforElementValue : <Object : bqObject> <Value to appear : bqText> <Wait For (seconds) : 30 <br/> Pauses the execution (max for 30 seconds) till element bqObject value as bqText.
waitUntillElementHasValue Web, Mobile <br/>

---

To wait until object (mentioned in objectName) has value on the screen.
Param 1 (Default: 60 sec) : Time in secondsExample:
waitUntillElementHasValue : <Object : bqObject> <Wait for (seconds) : 30>
Waits (max 30 seconds) until the object bqObject has value