DidacticialsInstructionsLinksAbout Zenith |
waitDescriptionWait some seconds or for something. SyntaxNeeded pairs :
Additionnal explanationDetails about the arguments :
Example with {"wait" : milliseconds}This example will display an alert, wait 3 seconds, and display another alert
{
"debug":true, "do":[
{
]"alert":"click on \"OK\" and wait 3 seconds", }, {"wait":3000}, { "alert":"You waited 3 seconds", }, }
Example with {"wait":"pause"} and {"wait":"while loading"}This example will move the cursor to the form in the "play area", you will be asked to type some texts : the script will pause ({"wait":"pause"} instruction). Once you've finished to type your text, click on "Resume", and the cursor will click on "OK". Once the page is loaded ({"wait":"while loading"} instruction), the cursor will move to the paragraph which displays what you typed
{
"debug":true, "do":[
{"goTo":"#input_text"},
]{"click":"l"}, {"alert":"type anything you want there"}, {"wait":"pause"}, {"goTo":"#OK"}, {"click":"l"}, {"wait":"while loading"}, {"goTo":"#typed_content"}, {"message":"Here is what you typed", "duration":3000}, }
Play Area |
© 2009 the Zenith Team.