Function to wait for application to complete one action
Can any one help me in providing me a user defined function for the below scenario.
Login into "www.mail.yahoo.com"
Enter proper user name and password
Click on Signin
After sigin, it takes more than 10 seconds or 20 seconds or even 1 minutes for displaying the main page. I need to write a function in which it silk test has to wait for such a long time then execute the rest of the script.
still now i was using "Sleep" but what happens if i give sleep (60), if the application comes in 1 seconds, silk test wait for 60 seconds then execute, i don't want to wait for such a long time.
Is there any user defined funcion, please help me, i am new to silk test fucntions.