Method. Waits for one or more strings of characters to appear in the terminal window. In HP and VT sessions, waitForDisplayStrings returns true if one of the strings appears in the visible terminal window or in the text that has scrolled off the screen into the scrollback buffer. If you are using one of these emulators and want to wait for strings to appear in the datacomm stream (which may include non-printing characters such as control characters), use the waitForStrings method. For HP emulators, you can also use the waitForHostPrompt method, which waits for the specified string plus the host prompt character.
public int waitForDisplayStrings(Vector inStrings, long timeout)