Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
SangeethaHanchate Absent Member.
Absent Member.

Wait statements in Silktest

 Hi All,

Can anyone suggest how to introduce explicit wait and implicit wait statements instead of using Sleep in Silktest?

1 Reply
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

RE: Wait statements in Silktest

Hi Sangeetha,

The Sleep() function in SilkTest Classic is essentially your basic 'wait' command, where you tell the script how long to pause before resuming at the next step.

We also provide the following methods that allow you to wait until certain criteria are met before proceeding:

WaitforObject(locator, [timeout]):
Waits for an object that matches the specified locator to exist, before proceeding If the locator is not matched within the timeout period, the script moves on regardless.

WaitforProperty(propertyName, propertyValue, [timeout]):
Waits until the property specified by the propertyName parameter returns the value specified by the propertyValue parameter or until the timeout value is reached.

Waits until an object no longer exists or the timeout value is reached.

WaitForChildDisappearance (locator, [timeout]):
Waits until the child object specified by the locator parameter no longer exists or the timeout value is reached.

WaitforBitmap(sBitmapFile, timeout, [RECT], [Maskfile]):
Waits for a screen image to match a saved bitmap within a timeout interval, and returns the time it took for the bitmap to appear.

Please see the Help Documentation for further details and examples of how to use these methods.

Best Regards...

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.