Method. Waits for a string of characters to appear in the incoming datastream. In contrast to the waitForDisplayString method, which waits for characters to appear in the terminal window, this method allows you to wait for characters that may not appear in the terminal window, such as escape sequences and other non-printing characters. For IBM sessions, use waitForDisplayString instead of this method.
public boolean waitForString(String inString,long timeout)