Overview¶
There are multiple reasons for wanting to slow down test script execution:
Wanting to visually follow the performed actions for demonstration or debugging purposes.
Wanting to avoid adding proper synchronization to recorded test scripts in cases where a lot of such custom synchronization would need to be added.
Solution - Using waitUntilObjectReady() and waitUntilObjectItemReady()¶
JavaScript
function main()
{
startApplication("addressbook");
...
}
function waitUntilObjectReady(obj)
{
snooze(1);
}
function waitUntilObjectItemReady(obj)
{
snooze(1);
}
Python
def main():
startApplication("...")
...
def waitUntilObjectReady(obj):
snooze(1)
def waitUntilObjectItemReady(obj):
snooze(1)