{wait}
Sample Usage
...the notice.{key:tab}{click}{wait: delay=10s}Also it is important that...
_
Settings
Setting Name Type Description delay text An optional delay period. If omitted, defaults to 1s
(1 second). General Command Settings trim yes/no/left/right If yes
whitespace is removed before and after the command. If left
, only whitespace to the left is removed. If right
, only whitespace to the right is removed.
Setting Name | Type | Description |
---|---|---|
delay | text | An optional delay period. If omitted, defaults to 1s (1 second). |
General Command Settings | ||
trim | yes/no/left/right | If yes whitespace is removed before and after the command. If left , only whitespace to the left is removed. If right , only whitespace to the right is removed. |
The delay
setting uses the same syntax to specify the delay as the shift
setting of the {time} command. Click here to learn about time shifting in Text Blaze.
The {wait}
command is useful when constructing Autopilot scripts where you need to wait for some change to occur on the underlying page (e.g. for it to finish loading data).
Examples
Wait Example
{key: tab}{key: enter}{wait: delay=2s}{key: tab}
_
The above example might be one where you tab to an enter button, press enter, the website loads an additional part of the form, and then you tab to the rest of the form.
To learn more about automating actions in a web page, see the autopilot guide.