WaitForText

Item Description

Use with:

Terminal Launcher

SecureLogin version:

All

Type:

Flow Control

Usage:

WaitForText text

Arguments:

text

The text that the script is waiting for.

Description:

Causes Terminal Launcher to wait for the specified text to be displayed before continuing. This command is essential because the user will always want to wait for particular text to be displayed on the screen before continuing. Otherwise, the user might enter text too soon.

The text can appear anywhere on the terminal screen. The text is case-sensitive. If the text is written in the wrong case, Terminal Launcher pauses and tries to find the correct text in the correct case, pausing until the terminal screen times out.

If WaitForText is not working, try leaving the initial letter off the text, so that you avoid any conflict with case. For example, the following line will work regardless of whether "login" is presented on the terminal screen as "Login" or "login".

WaitForText "ogin"

However, WaitForText "Login" will only work if "login" is presented on the screen as "Login".

Example:

WaitForText "Login:" 
Type $Username
Type @E
WaitForText "Password:"
Type $Password
Type @E