WAIT
Top  Previous  Next


Waits for a specific time before continuing replay with the next command.

Sometimes iMacros continues with a TAG command inside a frame before the web site in that frame has been completely loaded. This can be avoided by adding a WAIT SECONDS=#DOWNLOADCOMPLETE# command before the TAG command (see Examples).

Syntax

WAIT SECONDS=(n|#DOWNLOADCOMPLETE#)


Parameters

SECONDS
Specifies the number of seconds to wait. If a download was started, use #DOWNLOADCOMPLETE# to wait until the download has finished.


Examples

Follow a link on a framed site:

FRAME F=6
TAG POS=1 TYPE=SPAN ATTR=TXT:Select<SP>path


This could generate an error if the content inside the frame is not loaded in time. To avoid this error, use

FRAME F=6
WAIT SECONDS=#DOWNLOADCOMPLETE#
TAG POS=1 TYPE=SPAN ATTR=TXT:Select<SP>path


instead.


See Also

ONDOWNLOAD



Page URL http://www.iopus.com/imacros/help/cmd_wait.htm